Examples#

Examples of constrained feature selection with tagarnina.

The library currently has two algorithms, CRFE and CRFECV, and the list will evolve. Example titles name the algorithm they use.

CRFE without constraints is standard recursive feature elimination, as in scikit-learn’s RFE. The examples show its constrained extension, where the constraints decide which features can be removed at each step.

A demo of CRFE on German Credit Data

A demo of CRFE on German Credit Data

Advanced constraints in CRFE on superconductor data

Advanced constraints in CRFE on superconductor data

CRFECV on German Credit Data

CRFECV on German Credit Data

Custom importance getter with SHAP values in CRFE

Custom importance getter with SHAP values in CRFE

Greedy and probing strategies in CRFE

Greedy and probing strategies in CRFE

Stopping CRFE early with a callback on superconductor data

Stopping CRFE early with a callback on superconductor data

Gallery generated by Sphinx-Gallery