train_xgb
is for training a xgb model using in training_model
.
train_xgb(
seed_number = 1234,
dtrain,
nthread = 2,
nfold = 1,
watchlist = NULL,
nrounds = 100,
f_eval = "ks",
early_stopping_rounds = 10,
verbose = 0,
params = NULL,
...
)
Random number seed. Default is 1234.
train-data of xgb.DMatrix datasets.
Number of threads
Number of the cross validation of xgboost
named list of xgb.DMatrix datasets to use for evaluating model performance.generating by xgb_data
Max number of boosting iterations.
Custimized evaluation function,"ks" & "auc" are available.
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.
If 0, xgboost will stay silent. If 1, it will print information about performance.
List of contains parameters of xgboost. The complete list of parameters is available at: http://xgboost.readthedocs.io/en/latest/parameter.html
Other parameters