This should be first the more specific class, then the more general class (and it could just be an anonymous function inside of loo_cv()). We'll need to check revdeps when changing this one.
|
change_class <- function(x) { |
|
class(x) <- c("rsplit", "loo_split") |
|
x |
|
} |
This should be first the more specific class, then the more general class (and it could just be an anonymous function inside of
loo_cv()). We'll need to check revdeps when changing this one.rsample/R/loo.R
Lines 35 to 38 in 4357e11