View source: R/model_training.R
train_xgb
is for training a xgb model using in training_model
.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
seed_number |
Random number seed. Default is 1234. |
dtrain |
train-data of xgb.DMatrix datasets. |
nthread |
Number of threads |
nfold |
Number of the cross validation of xgboost |
watchlist |
named list of xgb.DMatrix datasets to use for evaluating model performance.generating by |
nrounds |
Max number of boosting iterations. |
f_eval |
Custimized evaluation function,"ks" & "auc" are available. |
early_stopping_rounds |
If NULL, the early stopping function is not triggered. If set to an integer k, training with a validation set will stop if the performance doesn't improve for k rounds. |
verbose |
If 0, xgboost will stay silent. If 1, it will print information about performance. |
params |
List of contains parameters of xgboost. The complete list of parameters is available at: http://xgboost.readthedocs.io/en/latest/parameter.html |
... |
Other parameters |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.