This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.preprocessing import KBinsDiscretizer | |
from sklearn.model_selection import RandomizedSearchCV | |
search_space = { | |
'preprocessing__binfeatures__n_bins': [10, 20], | |
'model__n_estimators': [500, 1000, 2000], | |
'model__class_weight': ['balanced', 'balanced_subsample'] | |
} | |
preprocessing = ColumnTransformer(transformers=[ |
OlderNewer