fix: minor refactoring

This commit is contained in:
Volodymyr Orlov
2020-03-31 18:24:01 -07:00
parent 8bb6013430
commit 5766364311
15 changed files with 49 additions and 52 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ impl Default for RandomForestClassifierParameters {
}
}
impl<T: FloatExt + Debug> RandomForestClassifier<T> {
impl<T: FloatExt> RandomForestClassifier<T> {
pub fn fit<M: Matrix<T>>(x: &M, y: &M::RowVector, parameters: RandomForestClassifierParameters) -> RandomForestClassifier<T> {
let (_, num_attributes) = x.shape();
+1 -1
View File
@@ -36,7 +36,7 @@ impl Default for RandomForestRegressorParameters {
}
}
impl<T: FloatExt + Debug> RandomForestRegressor<T> {
impl<T: FloatExt> RandomForestRegressor<T> {
pub fn fit<M: Matrix<T>>(x: &M, y: &M::RowVector, parameters: RandomForestRegressorParameters) -> RandomForestRegressor<T> {
let (n_rows, num_attributes) = x.shape();