View source: R/model_control.R
| model_control | R Documentation |
Specifies cross-validation settings for the model function.
model_control(validation_type = c("lgo", "none"), number = 10L, p = 0.75)
validation_type |
a character string specifying the validation method:
|
number |
an integer indicating the number of cross-validation
iterations. Only used when |
p |
a numeric value between 0 and 1 indicating the proportion of
observations to retain for training at each cross-validation iteration.
Only used when |
A list of class "model_control" containing the specified
parameters.
model
# Default settings (leave-group-out CV with 10 iterations)
model_control()
# No cross-validation
model_control(validation_type = "none")
# Custom CV settings
model_control(validation_type = "lgo", number = 20, p = 0.80)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.