pub struct RandomUnderSamplerConfig {
pub sampling_strategy: SamplingMode,
pub random_state: Option<u64>,
pub replacement: bool,
}
Expand description
Configuration for RandomUnderSampler
Fields§
§sampling_strategy: SamplingMode
Sampling strategy
random_state: Option<u64>
Random seed
replacement: bool
Whether to replace samples (with replacement)
Trait Implementations§
Source§impl Clone for RandomUnderSamplerConfig
impl Clone for RandomUnderSamplerConfig
Source§fn clone(&self) -> RandomUnderSamplerConfig
fn clone(&self) -> RandomUnderSamplerConfig
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 RandomUnderSamplerConfig
impl Debug for RandomUnderSamplerConfig
Auto Trait Implementations§
impl Freeze for RandomUnderSamplerConfig
impl RefUnwindSafe for RandomUnderSamplerConfig
impl Send for RandomUnderSamplerConfig
impl Sync for RandomUnderSamplerConfig
impl Unpin for RandomUnderSamplerConfig
impl UnwindSafe for RandomUnderSamplerConfig
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