View source: R/train_xgboost.R
A wrapper function that automates the xgboost training process
1 | xgb_create_dmatrix(data, x, y = NULL, w = NULL, base_margin = NULL)
|
data |
A data.frame (or coercible object) that contains the training data |
x |
A list of column names that identify the explanatory features |
y |
A column name that identifies that target variable |
w |
A column name that contains the name of the weight column. Defaults to NULL |
w |
A column name that contains the name of the offset column. Defaults to NULL |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.