Hi,
I try to use together ray tune+ xgboost+cross_val_score+early stopping and I have the problem how to add early stopping.
I can use:
ray tune+ xgboost+cross_val_score or ray tune+ xgboost +early stopping
but I don’t know how tu use both cross_val_score and early stopping
I found some tutorials:
https://docs.ray.io/en/master/tune/tutorials/tune-xgboost.html#early-stopping
I try to use together ray tune+ xgboost+cross_val_score+early stopping and I have the problem how to add early stopping.
I can use:
ray tune+ xgboost+cross_val_score or ray tune+ xgboost +early stopping
but I don’t know how tu use both cross_val_score and early stopping in the same ray tuning
I found tutorials:
https://docs.ray.io/en/master/tune/tutorials/tune-xgboost.html#early-stopping
10. XGBoost with Hyperopt, Optuna, and Ray
and code:
fit_params = {"early_stopping_rounds":1,
"eval_set" : [[testX, testY]]}
model = xgb.XGBRegressor()
gridsearch = GridSearchCV(estimator = xgb.XGBRegressor(),
param_grid=param_grid,
fit_params=fit_params,
verbose=1,
cv=2)
I’m not sure how to use “eval_set” if I make cross validation . I will be grateful for any hints or ideas.