xgb.cb.evaluation.log: Callback for logging the evaluation history

View source: R/callbacks.R

xgb.cb.evaluation.logR Documentation

Callback for logging the evaluation history

Description

Callback for logging the evaluation history

Usage

xgb.cb.evaluation.log()

Details

This callback creates a table with per-iteration evaluation metrics (see parameters evals and custom_metric in xgb.train()).

Note: in the column names of the final data.table, the dash '-' character is replaced with the underscore '_' in order to make the column names more like regular R identifiers.

Value

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

See Also

xgb.cb.print.evaluation


xgboost documentation built on Dec. 3, 2025, 5:06 p.m.