xgboost/early-stop-on-test
| Pack | Severity | Fix | Versions |
|---|---|---|---|
| XGBoost | warning | none, edit by hand | All versions |
Early stopping chooses the number of boosting rounds using an evaluation set. Scoring that set again gives a score on data that already guided the fit. Use an inner development validation set to choose the round and score the held-out test set separately.
Diagnostic message
Section titled “Diagnostic message”Early stopping uses the same holdout later scored as the final test. Stop on a separate development validation pair and score the test pair once.See all rules in the XGBoost pack.