XGBoosting Home | About | Contact | Examples

Early Stopping

Helpful examples for early stopping when fitting XGBoost models.

Early stopping in XGBoost is a technique used to halt the training process if the model’s performance on a validation set does not improve after a specified number of consecutive iterations, thereby preventing overfitting.

It is a type of model regularization.

ExamplesTags
Configure XGBoost "early_stopping_rounds" Parameter
Configure XGBoost "eval_metric" Parameter
Configure XGBoost "eval_set" Parameter
Configure XGBoost Early Stopping Regularization
Configure XGBoost Early Stopping Tolerance
Configure XGBoost Early Stopping Via Callback
Fit Final XGBoost Model With Early Stopping and Predict on Out-Of-Sample Data
How to Use XGBoost EarlyStopping Callback
Tune "num_boost_round" Parameter to xgboost.train()
Tune XGBoost "early_stopping_rounds" Parameter
XGBoost "best_iteration" Property
XGBoost "best_score" Property
XGBoost "evals_result()" Method
XGBoost Configure "aft-nloglik" Eval Metric
XGBoost Configure "auc" Eval Metric
XGBoost Configure "aucpr" Eval Metric
XGBoost Configure "cox-nloglik" Eval Metric
XGBoost Configure "error" Eval Metric
XGBoost Configure "error@t" Eval Metric
XGBoost Configure "gamma-deviance" Eval Metric
XGBoost Configure "gamma-nloglik" Eval Metric
XGBoost Configure "interval-regression-accuracy" Eval Metric
XGBoost Configure "logloss" Eval Metric
XGBoost Configure "mae" Eval Metric
XGBoost Configure "mape" Eval Metric
XGBoost Configure "merror" Eval Metric
XGBoost Configure "mlogloss" Eval Metric
XGBoost Configure "mphe" Eval Metric
XGBoost Configure "poisson-nloglik" Eval Metric
XGBoost Configure "rmse" Eval Metric
XGBoost Configure "rmsle" Eval Metric
XGBoost Configure "tweedie-nloglik" Eval Metric
XGBoost Configure fit() "early_stopping_rounds" Parameter
XGBoost Configure fit() "eval_metric" Parameter
XGBoost Configure fit() "verbose" Parameter
XGBoost Early Stopping Get Best Model
XGBoost Early Stopping Get Best Round (Iteration)
XGBoost Early Stopping Report Verbose Output
XGBoost Early Stopping With Cross-Validation
XGBoost Early Stopping With Grid Search
XGBoost Early Stopping With Random Search