pub struct ImbalancedValidationConfig {
pub strategy: ImbalancedStrategy,
pub n_folds: usize,
pub random_state: Option<u64>,
pub shuffle: bool,
pub sampling_strategy: SamplingStrategy,
pub k_neighbors: usize,
pub minority_threshold: f64,
pub imbalance_ratio_threshold: f64,
pub preserve_minority_distribution: bool,
}Fields§
§strategy: ImbalancedStrategy§n_folds: usize§random_state: Option<u64>§shuffle: bool§sampling_strategy: SamplingStrategy§k_neighbors: usize§minority_threshold: f64§imbalance_ratio_threshold: f64§preserve_minority_distribution: boolTrait Implementations§
Source§impl Clone for ImbalancedValidationConfig
impl Clone for ImbalancedValidationConfig
Source§fn clone(&self) -> ImbalancedValidationConfig
fn clone(&self) -> ImbalancedValidationConfig
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 ImbalancedValidationConfig
impl Debug for ImbalancedValidationConfig
Auto Trait Implementations§
impl Freeze for ImbalancedValidationConfig
impl RefUnwindSafe for ImbalancedValidationConfig
impl Send for ImbalancedValidationConfig
impl Sync for ImbalancedValidationConfig
impl Unpin for ImbalancedValidationConfig
impl UnwindSafe for ImbalancedValidationConfig
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