Nothing
skip_if_not_installed("duckdb")
b = as_duckdb_backend(iris, path = tempfile())
task = mlr3::TaskClassif$new("iris_duckdb", b, "Species")
learner = mlr3::mlr_learners$get("classif.featureless")
test_that("single step train + predict", {
expect_learner(learner$train(task, 1:120))
expect_r6(b, "DataBackendDuckDB")
p = learner$predict(task, 121:150)
expect_prediction(p)
expect_data_table(data.table::as.data.table(p), nrows = 30)
expect_character(learner$errors, len = 0L)
})
test_that("resample works", {
with_future("multisession", {
rr = mlr3::resample(task, learner, mlr3::rsmp("cv", folds = 3))
})
expect_resample_result(rr)
})
test_that("predict_newdata", {
learner$train(task, 1:120)
p = learner$predict_newdata(b)
expect_prediction(p)
})
disconnect(b)
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.