Extreme Gradient Boosting wrapper for CCI
wrapper_xgboost(
formula,
data,
train_indices,
test_indices,
metric,
nrounds = 500,
metricfunc = NULL,
nthread = 1,
eps = 1e-15,
subsample = 1,
...
)Performance metric
Model formula
Data frame
Indices for training data
Indices for training data
Type of metric ("RMSE", "Kappa" or "Log Loss")
Number of boosting rounds
A user specific metric function which have the arguments data, model test_indices and test_matrix and returns a numeric value
Integer. Number of threads to use for parallel computation during model training in XGBoost. Default is 1.
Small value to avoid log(0) in LogLoss calculations. Default is 1e-15.
Numeric. The proportion of the data to be used for subsampling. Default is 1 (no subsampling).
Additional arguments passed to xgb.train