[doc] Fix callback example. (#8944)

This commit is contained in:
Jiaming Yuan 2023-03-23 03:27:04 +08:00 committed by GitHub
parent 15a2724ff7
commit bf88dadb61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ class EarlyStopping(TrainingCallback):
es = xgboost.callback.EarlyStopping( es = xgboost.callback.EarlyStopping(
rounds=2, rounds=2,
abs_tol=1e-3, min_delta=1e-3,
save_best=True, save_best=True,
maximize=False, maximize=False,
data_name="validation_0", data_name="validation_0",