pub enum BalancingStrategy {
RandomOversample,
RandomUndersample,
SMOTE {
k_neighbors: usize,
},
}
Expand description
Balancing strategies for handling imbalanced datasets
Variants§
RandomOversample
Random oversampling - duplicates minority class samples
RandomUndersample
Random undersampling - removes majority class samples
SMOTE
SMOTE (Synthetic Minority Oversampling Technique) with specified k_neighbors
Trait Implementations§
Source§impl Clone for BalancingStrategy
impl Clone for BalancingStrategy
Source§fn clone(&self) -> BalancingStrategy
fn clone(&self) -> BalancingStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BalancingStrategy
impl Debug for BalancingStrategy
impl Copy for BalancingStrategy
Auto Trait Implementations§
impl Freeze for BalancingStrategy
impl RefUnwindSafe for BalancingStrategy
impl Send for BalancingStrategy
impl Sync for BalancingStrategy
impl Unpin for BalancingStrategy
impl UnwindSafe for BalancingStrategy
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