sink() if you interrupt (or if xgboost interrupts) prematurely the execution of the function. Otherwise, you end up with no more messages printed to your R console.xgb.ncv(data, label, extra_data = NA, out_of_fold = TRUE, nfolds = 5,
ntimes = 3, nthread = 2, seed = 11111, verbose = 1,
print_every_n = 1, sinkfile = "debug.txt", booster = "gbtree",
eta = 0.3, max_depth = 6, min_child_weight = 1, gamma = 0,
subsample = 1, colsample_bytree = 1, num_parallel_tree = 1,
maximum_rounds = 1e+05, objective = "binary:logistic",
eval_metric = "logloss", maximize = FALSE, early_stopping_rounds = 50)data and extra_data). Defaults to TRUE.5.3.2.11111.1.1."debug.txt"."gbtree" and must not be changed (does NOT work otherwise).0.3.6.1.0.0.632 to simulate Random Forests. Defaults to 1.1.1 simulates boosted Random Forests. Defaults to 1.100000."binary:logistic"."logloss".FALSE.50."scores" for the scored folds (data.frame), "folds" for the folds IDs (list), "preds" for out of fold predictions (data.frame), and "extra" for extra data predictions per fold (data.frame).#Pick your xgb.cv function, replace data by the initial matrix, insert the label,
#check ntimes to the value you want, and change the sinkfile.
#Unlist params if needed, and add the seed as a parameter.
Run the code above in your browser using DataLab