xgb_create_dmatrix: train_xgboost

Description Usage Arguments

View source: R/train_xgboost.R

Description

A wrapper function that automates the xgboost training process

Usage

1
xgb_create_dmatrix(data, x, y = NULL, w = NULL, base_margin = NULL)

Arguments

data

A data.frame (or coercible object) that contains the training data

x

A list of column names that identify the explanatory features

y

A column name that identifies that target variable

w

A column name that contains the name of the weight column. Defaults to NULL

w

A column name that contains the name of the offset column. Defaults to NULL


gm209/gmtools documentation built on May 22, 2019, 2:39 p.m.