crossv_GeDS {GeDS} | R Documentation |
k-fold cross-validation
Description
crossv_GeDS
performs k-fold cross-validation for tuning the relevant
parameters of the NGeDS
, GGeDS
, NGeDSgam
, and
NGeDSboost
models.
Arguments
formula |
a description of the structure of the model structure, including the dependent and independent variables. |
data |
a data frame containing the variables referenced in the formula. |
model_fun |
the GeDS model to be fitted, that is, |
parameters |
to tune via cross-validation. These are: |
Value
Two data frames, best_params
and results
.
best_params
contains the best combination of parameters according to
the cross-validated MSE. results
presents the results for each of the
possible combinations of parameters, given the input parameters
.