Expand description
Feature selection transformers.
Remove low-information features before training to reduce overfitting and speed up downstream models.
§Examples
ⓘ
use scry_learn::prelude::*;
let mut vt = VarianceThreshold::new().threshold(0.1);
vt.fit(&data)?;
vt.transform(&mut data)?; // drops constant / near-constant columnsStructs§
- SelectK
Best - Select the top-k highest-scoring features.
- Variance
Threshold - Remove features whose variance falls below a threshold.
Enums§
- ScoreFn
- Scoring function for feature selection.
Functions§
- f_
classif - Compute ANOVA F-value for each feature vs. the target.