Description Usage Arguments Examples
View source: R/dataManipulations.R
Converts training dataset into xgboost datasets by
using xgb.DMatrix
.
1 | convertyDataToXgBoost(x, target)
|
x |
A list containing an element named 'trainData'. |
target |
A character string, the name of the target variable column |
1 2 3 | DF1 <- data.frame(y = 1:6, a = letters[1:2], b = gl(3,2,labels = c("H","M","L")))
train.list <- list(trainData = DF1)
convertyDataToXgBoost(train.list, "y")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.