xgboard.xgb: Xgboard Metric Evaluation Creator (Wrapper)

Description Usage Arguments Examples

Description

This function is a wrapper to create an evaluation metric.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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))

## End(Not run)

Laurae2/Laurae documentation built on May 8, 2019, 7:59 p.m.