Learn R Programming

Laurae (version 0.0.0.9001)

xgboard.xgb: Xgboard Metric Evaluation Creator (Wrapper)

Description

This function is a wrapper to create an evaluation metric.

Usage

xgboard.xgb(..., f, dumper)

Arguments

...
Type: nothing. Ignore.
f
Type: function. An xgboost evaluation metric function with dump input.
dumper
Type: environment. An environment created by xgboard.init.

Examples

Run this code
## Not run: ------------------------------------
# # Model will be trained using these parameters
# # Take note of eval_metric needing xgboard.xgb(f = your metric, dumper = envir)
# param <- list(max_depth = 2,
#               eta = 1,
#               silent = 1,
#               nthread = 2, 
#               objective = "binary:logistic",
#               eval_metric = xgboard.xgb(f = board.evalerror, dumper = my_envir))
## ---------------------------------------------

Run the code above in your browser using DataLab