View source: R/cv_GeDSMethod.R
crossv_GeDS | R Documentation |
crossv_GeDS
implements k-fold cross-validation for the relevant
parameters of NGeDS
,
GGeDS
, NGeDSgam
and NGeDSboost
formula |
a description of the structure of the model to be fitted, 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 cross-validate. |
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 paramters
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.