Learn R Programming

wactor (version 0.0.1)

xgb_mat: xgb matrix

Description

Simple wrapper for creating a xgboost matrix

Usage

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

Run this code
# NOT RUN {
xgb_mat(data.frame(x = rnorm(20), y = rnorm(20)))

# }

Run the code above in your browser using DataLab