Description Usage Arguments Details Value
This function cross validates a grid of meta-parameter arguments implied by expand.grid(...)
.
The final model is returned with the best fitting parameters.
1 |
y |
vector of outcomes |
x |
matrix of predictors |
cv.folds |
number of cross-validation folds |
mc.cores |
number of cores |
subset |
subset of the data to use for training; cross-validation will be performed within subset |
... |
args to gbm.fit. Arguments can be passed vectors. The function tunes across all rows of |
Non-grid arguments (such as distribution
, weights
, etc) can be passed as normal.
A list with $gbm
(fitted model with best meta parameters), $best_args
(best meta parameters), and $args
(all meta parameters with cv err)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.