Skip to content
Advertisement

cant print sfs features selected in pipeline

I am selecting best features and then doing grid search. When finished, I want to print the best features that have been selected.

JavaScript

When trying to print with

JavaScript

I get the following error

JavaScript

Ive also tried

JavaScript

but have gotten an error.

Advertisement

Answer

The grid search clones its estimator before fitting, so your pipe itself remains unfitted. You can access the refitted-to-best-hyperparameters best_estimator_:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement