Skip to content

Tag: scikit-learn

Scaler fitted in a pipeline turns out to be not fitted yet

Please consider this code: I get this message: Why is the scaler not fitted? Answer When passing a pipeline or an estimator to RFE, it essentially gets cloned by the RFE and fit until it finds the best fit with the reduced number of features. To access this fit estimator you can use fit_pipeline = rfe.estimat…