View source: R/SRxgboost_data_prep.R
SRxgboost_data_prep | R Documentation |
Prepare data for SRxgboost modeling. Creates data for xgboost modeling function SRxgboost_run (y, partitions, train, test). Creates a sparse matrix and dmatrix.
SRxgboost_data_prep(
yname,
data_train,
data_test = NULL,
no_folds = NULL,
folds = NULL,
eval_index = NULL,
nthreads = NULL,
objective = NULL,
weights = NULL,
label_encoding = TRUE,
add_random_variables = FALSE,
check_covariate_drift = FALSE
)
yname |
character |
data_train |
data.frame |
data_test |
data.frame |
no_folds |
integer |
folds |
list, output from xxx |
eval_index |
vector |
nthreads |
integer |
objective |
character: one of "regression", "classification", "multilabel" |
weights |
table of weights (multilabel classification with "weighted_precision" only) |
label_encoding |
boolean |
add_random_variables |
boolean |
check_covariate_drift |
boolean |
assigns output into global workspace
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.