Description Usage Arguments Value
gbm_tune
Function used to tune the hyper parameters of the GBM model.
1 2 |
Data |
A dataframe. |
k_folds |
An integer that corresponds to the number of CV folds. |
variables |
A vector that contains the names of the variables that will be considered by the function as input variables. |
ncores |
Number of threads used for the parallelization of the cross validation |
cv_blocks |
type of blocks for the cross validation; Default is "none", which corresponds to the standard cross validation technique |
iter |
A vector with combination of the number of iterations. |
depth |
A vector with combination of the maximum depths. |
lr |
A vector with combination of the learning rates. |
subsample |
A vector with combination of subsamples. |
a list with the two following components:
a dataframe the training accuracy metrics (R2, RMSE and CVRMSE) and values of the tuning hype-parameters
a list of the best hyper-parameters
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.