rapid_cv | R Documentation |
Implements cross-validation according to Gianola and Schon 2016. Returns RMSE and r-squared
rapid_cv(object, index, rapid = TRUE)
object |
A fitted model object |
index |
A list of indices for leave-n-out cross-validation (i.e. the training set) |
rapid |
Logical; should the rapid method be used? |
fit <- lm(Sepal.Length ~ ., iris)
indices <- lapply(X = crossv_loo_grouped(group_by(iris, Species))$train, "[[", "idx")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.