R language uses the train function of the caret package to build an xgboost model ( gbtree
algorithm-based) model to build a classification model, trainControl function to set cross-validation parameters, custom tuning evaluation indicators, tuneLength parameters and tuneGrid parameters hyperparameter tuning
Table of contents