Some extra evaluation metrics for xgboost in R
✓ Published0🌍 Public
Aaakansh9
Last edited May 26, 2016
Created on May 26, 2016
This example demonstrates two custom evaluation metrics for the xgboost package in R: MAPE (mean absolute percentage error) and RMSEE (root mean square exponential error). It defines two R functions, `MAPE` and `RMSEE`, each of which takes prediction values and a training data object, then extracts labels via `getinfo` to compute the respective error metric. The code shows how to integrate custom metrics into xgboost’s training loop by returning a list with the metric name and computed value, enabling users to monitor these alternatives during model fitting.
AI-generated description