pub struct DecisionTreeRegressorParameters {
pub max_depth: Option<u16>,
pub min_samples_leaf: usize,
pub min_samples_split: usize,
pub seed: Option<u64>,
}
Expand description
Parameters of Regression Tree
Fields§
§max_depth: Option<u16>
The maximum depth of the tree.
min_samples_leaf: usize
The minimum number of samples required to be at a leaf node.
min_samples_split: usize
The minimum number of samples required to split an internal node.
seed: Option<u64>
Controls the randomness of the estimator
Implementations§
source§impl DecisionTreeRegressorParameters
impl DecisionTreeRegressorParameters
sourcepub fn with_max_depth(self, max_depth: u16) -> Self
pub fn with_max_depth(self, max_depth: u16) -> Self
The maximum depth of the tree.
sourcepub fn with_min_samples_leaf(self, min_samples_leaf: usize) -> Self
pub fn with_min_samples_leaf(self, min_samples_leaf: usize) -> Self
The minimum number of samples required to be at a leaf node.
sourcepub fn with_min_samples_split(self, min_samples_split: usize) -> Self
pub fn with_min_samples_split(self, min_samples_split: usize) -> Self
The minimum number of samples required to split an internal node.
Trait Implementations§
source§impl Clone for DecisionTreeRegressorParameters
impl Clone for DecisionTreeRegressorParameters
source§fn clone(&self) -> DecisionTreeRegressorParameters
fn clone(&self) -> DecisionTreeRegressorParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<TX: Number + PartialOrd, TY: Number, X: Array2<TX>, Y: Array1<TY>> SupervisedEstimator<X, Y, DecisionTreeRegressorParameters> for DecisionTreeRegressor<TX, TY, X, Y>
impl<TX: Number + PartialOrd, TY: Number, X: Array2<TX>, Y: Array1<TY>> SupervisedEstimator<X, Y, DecisionTreeRegressorParameters> for DecisionTreeRegressor<TX, TY, X, Y>
Auto Trait Implementations§
impl RefUnwindSafe for DecisionTreeRegressorParameters
impl Send for DecisionTreeRegressorParameters
impl Sync for DecisionTreeRegressorParameters
impl Unpin for DecisionTreeRegressorParameters
impl UnwindSafe for DecisionTreeRegressorParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more