model = XGBClassifier() param_grid = {"n_estimators": [100]} cv = StratifiedKFold(n_splits=5, shuffle=True) gs = GridSearchCV(model, param_grid=param_grid)