pub struct GradientBoostingConfig {
pub n_estimators: usize,
pub learning_rate: Float,
pub max_depth: usize,
pub min_samples_split: usize,
pub min_samples_leaf: usize,
pub subsample: Float,
pub loss_function: LossFunction,
pub random_state: Option<u64>,
pub tree_type: GradientBoostingTree,
pub early_stopping: Option<usize>,
pub validation_fraction: Float,
}Expand description
Gradient boosting configuration
Fields§
§n_estimators: usize§learning_rate: Float§max_depth: usize§min_samples_split: usize§min_samples_leaf: usize§subsample: Float§loss_function: LossFunction§random_state: Option<u64>§tree_type: GradientBoostingTree§early_stopping: Option<usize>§validation_fraction: FloatTrait Implementations§
Source§impl Clone for GradientBoostingConfig
impl Clone for GradientBoostingConfig
Source§fn clone(&self) -> GradientBoostingConfig
fn clone(&self) -> GradientBoostingConfig
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 GradientBoostingConfig
impl Debug for GradientBoostingConfig
Auto Trait Implementations§
impl Freeze for GradientBoostingConfig
impl RefUnwindSafe for GradientBoostingConfig
impl Send for GradientBoostingConfig
impl Sync for GradientBoostingConfig
impl Unpin for GradientBoostingConfig
impl UnwindSafe for GradientBoostingConfig
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