Nothing
skip_if_not_installed("protoclust")
test_that("autotest", {
learner = lrn("clust.protoclust")
expect_learner(learner)
task = generate_tasks(learner)
learner$train(task[[1L]])
expect_class(learner$model, "protoclust")
expect_warning(learner$predict(task[[1L]]), "doesn't predict on new data")
})
test_that("Learner properties are respected", {
task = tsk("usarrests")
learner = lrn("clust.protoclust")
expect_learner(learner, task)
# test on multiple paramsets
parset_list = list(
list(k = 3L),
list(k = 5L),
list(k = 3L, method = "manhattan")
)
for (parset in parset_list) {
learner$param_set$values = parset
p = suppressWarnings(learner$train(task)$predict(task))
expect_prediction_clust(p, learner)
}
})
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.