Skip to contents

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).

Usage

xgb.cb.print.evaluation(period = 1, showsd = TRUE)

Arguments

period

Results would be printed every number of periods.

showsd

Whether standard deviations should be printed (when available).

Value

An xgb.Callback object, which can be passed to xgb.train() or xgb.cv().

See also