finally made the fs work within class and without

This commit is contained in:
Tanushree Tunstall 2022-05-21 13:30:04 +01:00
parent 4a9e9dfedf
commit 39cd7b4259
3 changed files with 95 additions and 110 deletions

View file

@ -25,6 +25,7 @@ X_eg, y_eg = make_classification(n_samples=1000,
pipe = Pipeline([('scaler', StandardScaler()),
('selector', SelectKBest(mutual_info_classif, k=9)),
('classifier', LogisticRegression())])
search_space = [{'selector__k': [5, 6, 7, 10]},