The callback function prints the result of evaluation at every period
iterations.
The initial and the last iteration's evaluations are always printed.
Does not leave any attribute in the booster (see xgb.cb.evaluation.log for that).
Value
An xgb.Callback
object, which can be passed to xgb.train()
or xgb.cv()
.