xgb_mat: xgb matrix

Description Usage Arguments Value Examples

View source: R/xgb_mat.R

Description

Simple wrapper for creating a xgboost matrix

Usage

1
xgb_mat(x, ..., y = NULL, split = NULL)

Arguments

x

Input data

...

Other data to cbind

y

Label vector

split

Optional number between 0-1 indicating the desired split between train and test

Value

A xgb.Dmatrix

Examples

1
xgb_mat(data.frame(x = rnorm(20), y = rnorm(20)))

wactor documentation built on Dec. 18, 2019, 5:07 p.m.