Answers for "Shuffle the data before GridSearchCV"

0

Shuffle the data before GridSearchCV

model = XGBClassifier()
param_grid = {"n_estimators": [100]}
cv = StratifiedKFold(n_splits=5, shuffle=True)
gs = GridSearchCV(model, param_grid=param_grid)
Posted by: Guest on May-18-2021

Python Answers by Framework

Browse Popular Code Answers by Language