Description Usage Arguments Value Examples
This function creates an xgboost as a HTML file. Cross-validation is mandatory. Does NOT handle multiclass scenarios or non-regression/classification tasks. Does NOT handle gblinear. You cannot use process_type
, updater
, and refresh_leaf
parameters. Add quiet = TRUE
to the list of arguments to make the function "shut up" the massive verbose text.
1 2 3 4 5 |
data |
Type: data.table. The data to fit a xgboost model on. |
label |
Type: vector. The label the data must fit to. |
folds |
Type: list of numeric vectors. The folds used. |
params |
Type: list. The parameters to pass to |
normalize |
Type: boolean. Whether features should be normalized before being fed to the xgboost model. Defaults to |
classification |
Type: boolean. Whether the task is a classification or not. Defaults to |
threshold |
Type: numeric. The binary threshold to use for statistics when using |
importance |
Type: boolean. Whether to perform feature importance computation or not. Defaults to |
unbiased |
Type: boolean. Whether to perform unbiased feature importance computation or not. This doubles (sometimes triples) the effective training time, therefore this must be used with caution (for the benefits of getting very accurate and unbiased feature importance from the final cross-validated models). Defaults to |
stats |
Type: boolean. Whether machine learning statistics should be output for model performance diagnosis. When |
plots |
Type: boolean. Whether plotting of fitted values vs predicted values should be done. Defaults to |
plot_type |
Type: character. The type of plot to use for classification threshold calibration plots. |
output_file |
Type: character. The output report file name. Defaults to |
output_dir |
Type: character. The output report directory name. Defaults to |
open_file |
Type: boolean. Whether to open the output report once it has finished computing. Defaults to |
quiet |
Type: boolean. Whether to "shut up" while rendering the HTML file or not. Defaults to |
... |
Other arguments to pass to |
Returns a list with the machine learning metrics ("Metrics"
), the machine learning probabilities ("Probs"
), the folds "Folds"
, the fitted values per fold ("Fitted"
), the predicted values per fold ("Predicted"
), the biased feature importance ("BiasedImp"
), and the unbiased feature importance ("UnbiasedImp"
) if they were computed. Otherwise, returns TRUE
.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.