Nothing
test_that("backup callback works", {
on.exit(unlink("./archive.rds"))
instance = OptimInstanceSingleCrit$new(
objective = OBJ_1D,
search_space = PS_1D,
terminator = trm("evals", n_evals = 10),
callbacks = clbk("bbotk.backup", path = "./archive.rds"),
)
optimizer = opt("random_search")
optimizer$optimize(instance)
expect_file_exists("./archive.rds")
expect_data_table(readRDS("./archive.rds"))
})
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.