ARFS feature selection#
ARFS provides feature selection and preprocessing for pandas data. Start with the offline GrootCV example to fit a selector and reuse it on held-out rows. See Upgrading to 5.0 for migration steps.
Choose a method#
Basic filters remove columns that fail rules for missingness, number of distinct values, cardinality or redundancy. Use them to screen a raw table.
All-relevant selectors (GrootCV, Leshy and BoostAGroota) look for predictors that a tree model can use, including potentially redundant signals. They judge fitted importances against shuffled copies of predictors.
MRMR ranks candidates by their relevance to the target and redundancy with features already selected. Use it when you need a feature budget.
Lasso selects individual numeric or encoded columns in a generalized linear model (GLM) design and refits the surviving columns without a penalty. Use it when that design and model family match the intended analysis.
Selections depend on the training rows, predictor dtypes and encodings, and any model, importance method or observation weights used. Fit learned steps inside each training split and reuse them to transform held-out rows. Use arfs.feature_selection package for signatures and fitted attributes.
User's guide
Core tutorials
- All-relevant selection for regression
- All-relevant selection for classification
- Screen a table with basic feature selectors
- Associations and collinearity filtering
- Preprocessing: check the partitions against known truth
- Lasso selection: ordinary factors versus supervised partitions
- MRMR: selection before and after supervised partitioning
Advanced tutorials
- MRMR versus ARFS all-relevant selection
- Categorical predictors and estimator inputs
- How redundant predictors can change selection
- GrootCV objectives, boosting limits and custom splits
- Feature selection in time-series evaluation
- Bound row sampling before feature selection
- Poisson loss and exposure weights