Nothing
test_that("`plot.see_performance_roc()` works", {
set.seed(123)
iris$y <- rbinom(nrow(iris), size = 1, 0.3)
folds <- sample(nrow(iris), size = nrow(iris) / 8, replace = FALSE)
test_data <- iris[folds, ]
train_data <- iris[-folds, ]
model <- stats::glm(
y ~ Sepal.Length + Sepal.Width,
data = train_data,
family = "binomial"
)
result <- performance::performance_roc(model, new_data = test_data)
vdiffr::expect_doppelganger(
title = "plot.see_performance_roc() works",
fig = plot(result)
)
})
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.