| xb_dia | R Documentation |
Trains an Extreme Gradient Boosting (XGBoost) model using caret::train
for binary classification.
xb_dia(X, y, tune = FALSE, cv_folds = 5, tune_length = 20)
X |
A data frame of features. |
y |
A factor vector of class labels. |
tune |
Logical, whether to perform hyperparameter tuning using |
cv_folds |
An integer, the number of cross-validation folds for |
tune_length |
An integer, the number of random parameter combinations to try when tune=TRUE. Only used when search="random". Default is 20. |
A caret::train object representing the trained XGBoost model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.