train_xgb {creditmodel}R Documentation

Training XGboost

Description

train_xgb is for training a xgb model using in training_model.

Usage

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,
  ...
)

Arguments

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 xgb_data

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


[Package creditmodel version 1.3.1 Index]