Description Usage Arguments Value
View source: R/stackingFunctions.R
Cleans the training data for xgboost, which requires a model matrix instead of a formula
1 2 | cleanDataGBM(trainset, gbm_vars, gbm_factors = NULL, testset = NULL,
new_vars_gbm = NULL)
|
trainset |
The training dataset |
gbm_vars |
Predictor variables to use in the GBM model |
gbm_factors |
Which predictor variables need to be converted to factors |
testset |
Optional test set; included so that both cleaned versions will have the same dimensions |
new_vars_gbm |
Optional variable names to include as input |
A list, containing cleaned versions of the trainset and testset
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.