pub enum FeatureSelectionMethod {
SelectKBest {
k: usize,
},
SelectPercentile {
percentile: f64,
},
RecursiveFeatureElimination {
step: usize,
},
L1Selection {
alpha: f64,
},
VarianceThreshold {
threshold: f64,
},
CorrelationThreshold {
threshold: f64,
},
MutualInformation {
k: usize,
},
TreeImportance {
threshold: f64,
},
}Expand description
Feature selection methods
Variants§
SelectKBest
Select K best features using univariate statistics
SelectPercentile
Select percentile of best features
RecursiveFeatureElimination
Recursive feature elimination
L1Selection
L1-based feature selection
VarianceThreshold
Variance threshold
CorrelationThreshold
Correlation threshold
MutualInformation
Mutual information
TreeImportance
Feature importance from tree models
Trait Implementations§
Source§impl Clone for FeatureSelectionMethod
impl Clone for FeatureSelectionMethod
Source§fn clone(&self) -> FeatureSelectionMethod
fn clone(&self) -> FeatureSelectionMethod
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 FeatureSelectionMethod
impl Debug for FeatureSelectionMethod
Source§impl PartialEq for FeatureSelectionMethod
impl PartialEq for FeatureSelectionMethod
impl StructuralPartialEq for FeatureSelectionMethod
Auto Trait Implementations§
impl Freeze for FeatureSelectionMethod
impl RefUnwindSafe for FeatureSelectionMethod
impl Send for FeatureSelectionMethod
impl Sync for FeatureSelectionMethod
impl Unpin for FeatureSelectionMethod
impl UnwindSafe for FeatureSelectionMethod
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