fix: minor refactoring
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user