pub struct BaggingConfig {Show 13 fields
pub n_estimators: usize,
pub max_samples: Option<usize>,
pub max_features: Option<usize>,
pub bootstrap: bool,
pub bootstrap_features: bool,
pub random_state: Option<u64>,
pub oob_score: bool,
pub n_jobs: Option<i32>,
pub max_depth: Option<usize>,
pub min_samples_split: usize,
pub min_samples_leaf: usize,
pub confidence_level: Float,
pub extra_randomized: bool,
}Expand description
Configuration for bagging ensemble
Fields§
§n_estimators: usizeNumber of base estimators in the ensemble
max_samples: Option<usize>Number of samples to draw from X to train each base estimator
max_features: Option<usize>Number of features to draw from X to train each base estimator
bootstrap: boolWhether to use replacement when sampling
bootstrap_features: boolWhether to use replacement when sampling features
random_state: Option<u64>Random state for reproducible results
oob_score: boolOut-of-bag score calculation
n_jobs: Option<i32>Number of jobs for parallel execution
max_depth: Option<usize>Maximum depth for decision tree base estimators
min_samples_split: usizeMinimum samples required to split an internal node
min_samples_leaf: usizeMinimum samples required to be at a leaf node
confidence_level: FloatBootstrap confidence level for intervals
extra_randomized: boolUse extra randomization (Extremely Randomized Trees)
Trait Implementations§
Source§impl Clone for BaggingConfig
impl Clone for BaggingConfig
Source§fn clone(&self) -> BaggingConfig
fn clone(&self) -> BaggingConfig
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 BaggingConfig
impl Debug for BaggingConfig
Auto Trait Implementations§
impl Freeze for BaggingConfig
impl RefUnwindSafe for BaggingConfig
impl Send for BaggingConfig
impl Sync for BaggingConfig
impl Unpin for BaggingConfig
impl UnwindSafe for BaggingConfig
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