Rename to from_array

This commit is contained in:
Luis Moreno
2020-11-11 22:23:56 -04:00
parent 49487bccd3
commit 6587ac032b
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ impl<T: RealNumber, M: Matrix<T>, D: NBDistribution<T, M>> BaseNaiveBayes<T, M,
*prediction
})
.collect::<Vec<T>>();
let y_hat = M::RowVector::from_slice(&predictions);
let y_hat = M::RowVector::from_array(&predictions);
Ok(y_hat)
}
}