Skip to content

Tag: scikit-learn

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. When trying to print with I get the following error Ive also tried but have gotten an error. Answer The grid search clones its estimator before fitting, so your pipe itself remain…

Python OOP using sklearn API

I want to learn more advanced OOP methods and create a class using sklearn APIs, my idea is to integrate feature selection methods. I want to be able to call a feature selection method by name, and next fit and transform data. I am not sure, what I am doing wrong but currently, I have the following error that…