pub struct ModelTreeConfig {
pub max_depth: Option<usize>,
pub min_samples_split: usize,
pub min_samples_leaf: usize,
pub min_std_dev_reduction: Float,
pub prune: bool,
pub smoothing: bool,
pub leaf_model: LeafModelType,
}Expand description
Configuration for Model Tree
Fields§
§max_depth: Option<usize>Maximum depth of the tree
min_samples_split: usizeMinimum samples required to split an internal node
min_samples_leaf: usizeMinimum samples required to be at a leaf node
min_std_dev_reduction: FloatMinimum standard deviation reduction required for a split
prune: boolWhether to prune the tree
smoothing: boolSmoothing parameter for leaf predictions
leaf_model: LeafModelTypeModel type in leaves
Trait Implementations§
Source§impl Clone for ModelTreeConfig
impl Clone for ModelTreeConfig
Source§fn clone(&self) -> ModelTreeConfig
fn clone(&self) -> ModelTreeConfig
Returns a duplicate 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 Debug for ModelTreeConfig
impl Debug for ModelTreeConfig
Auto Trait Implementations§
impl Freeze for ModelTreeConfig
impl RefUnwindSafe for ModelTreeConfig
impl Send for ModelTreeConfig
impl Sync for ModelTreeConfig
impl Unpin for ModelTreeConfig
impl UnwindSafe for ModelTreeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more