Nothing
model <- lm(mpg ~ wt + cyl, data = mtcars)
set.seed(123)
out <- performance_cv(model)
test_that("performance_cv", {
expect_equal(out$MSE, 5.91153, tolerance = 1e-3)
expect_equal(colnames(out), c("MSE", "RMSE", "R2"), tolerance = 1e-3)
})
set.seed(123)
out <- performance_cv(model, metrics = c("MSE", "R2"))
test_that("performance_cv", {
expect_equal(out$MSE, 5.91153, tolerance = 1e-3)
expect_equal(colnames(out), c("MSE", "R2"), tolerance = 1e-3)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.