In the xgb.cv
function (from the library xgboost
), one of the options is early_stopping_rounds
. The description of this option is:
If NULL, the early stopping function is not triggered. If set to an integer k, training with a validation set will stop if the performance doesn't improve for k rounds. Setting this parameter engages the cb.early.stop callback.
What exactly is meant by "if the performance doesn't improve for k
rounds"? Is there a tolerance level tol
set for this? I.e., if the difference in the performance metric between two consecutive rounds is < tol
for k
rounds? I want to know what the tolerance level is for xgb.cv
but cannot find it anywhere in the documentation.
Otherwise, does it just mean that if it continues to decrease for k
rounds?