pub enum FeatureSelectionStrategy {
None,
VarianceThreshold(Float),
TopK(usize),
ImportanceThreshold(Float),
TopPercentile(Float),
}Expand description
Feature selection strategy for FeatureUnion
Variants§
None
No feature selection (keep all features)
VarianceThreshold(Float)
Select top k features based on variance
TopK(usize)
Select top k features by count
ImportanceThreshold(Float)
Select features with importance above threshold
TopPercentile(Float)
Select top percentage of features
Trait Implementations§
Source§impl Clone for FeatureSelectionStrategy
impl Clone for FeatureSelectionStrategy
Source§fn clone(&self) -> FeatureSelectionStrategy
fn clone(&self) -> FeatureSelectionStrategy
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 FeatureSelectionStrategy
impl Debug for FeatureSelectionStrategy
Source§impl Default for FeatureSelectionStrategy
impl Default for FeatureSelectionStrategy
Source§impl PartialEq for FeatureSelectionStrategy
impl PartialEq for FeatureSelectionStrategy
impl Copy for FeatureSelectionStrategy
impl StructuralPartialEq for FeatureSelectionStrategy
Auto Trait Implementations§
impl Freeze for FeatureSelectionStrategy
impl RefUnwindSafe for FeatureSelectionStrategy
impl Send for FeatureSelectionStrategy
impl Sync for FeatureSelectionStrategy
impl Unpin for FeatureSelectionStrategy
impl UnwindSafe for FeatureSelectionStrategy
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