pub struct TrainConfig {Show 16 fields
pub algorithm: TrainAlgorithm,
pub task: Task,
pub tree_type: TreeType,
pub criterion: Criterion,
pub max_depth: Option<usize>,
pub min_samples_split: Option<usize>,
pub min_samples_leaf: Option<usize>,
pub physical_cores: Option<usize>,
pub n_trees: Option<usize>,
pub max_features: MaxFeatures,
pub seed: Option<u64>,
pub compute_oob: bool,
pub learning_rate: Option<f64>,
pub bootstrap: bool,
pub top_gradient_fraction: Option<f64>,
pub other_gradient_fraction: Option<f64>,
}Fields§
§algorithm: TrainAlgorithm§task: Task§tree_type: TreeType§criterion: Criterion§max_depth: Option<usize>§min_samples_split: Option<usize>§min_samples_leaf: Option<usize>§physical_cores: Option<usize>§n_trees: Option<usize>§max_features: MaxFeatures§seed: Option<u64>§compute_oob: bool§learning_rate: Option<f64>§bootstrap: bool§top_gradient_fraction: Option<f64>§other_gradient_fraction: Option<f64>Trait Implementations§
Source§impl Clone for TrainConfig
impl Clone for TrainConfig
Source§fn clone(&self) -> TrainConfig
fn clone(&self) -> TrainConfig
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 TrainConfig
impl Debug for TrainConfig
Source§impl Default for TrainConfig
impl Default for TrainConfig
impl Copy for TrainConfig
Auto Trait Implementations§
impl Freeze for TrainConfig
impl RefUnwindSafe for TrainConfig
impl Send for TrainConfig
impl Sync for TrainConfig
impl Unpin for TrainConfig
impl UnsafeUnpin for TrainConfig
impl UnwindSafe for TrainConfig
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