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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 Freeze for DecisionTreeRegressorParameters
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