rules/feature_engine/smart-corr-model-performance-no-estimator.md

SmartCorrelatedSelection(selection_method="model_performance") fits a scikit-learn estimator on each correlated feature group and raises ValueError at initialization when estimator is omitted or None.

diff
1-sel = SmartCorrelatedSelection(selection_method="model_performance")
2+sel = SmartCorrelatedSelection(selection_method="model_performance", estimator=RandomForestClassifier(random_state=0))

What the rule reports

Calls to SmartCorrelatedSelection with selection_method="model_performance" and no non-None estimator argument.

How to fix it

Pass a scikit-learn estimator via estimator=, or use a model-free selection_method such as "variance" or "missing_values".