library(mlr3learners.catboost)
test_that("regr.catboost_catboost.train", {
learner = lrn("regr.catboost")
fun = catboost::catboost.train
exclude = c(
"learn_pool", # handled via mlr3
"test_pool", # don't use internal validation
"params" # each parameter supplied separately
)
ParamTest = run_paramtest(learner, fun, exclude)
expect_true(ParamTest, info = paste0(
"\nMissing parameters:\n",
paste0("- '", ParamTest$missing, "'", collapse = "\n")))
})
test_that("regr.catboost_catboost.predict", {
learner = lrn("regr.catboost")
fun = catboost::catboost.predict
exclude = c(
"model", # handled via mlr3
"pool", # handled via mlr3
"prediction_type" # handled via mlr3
)
ParamTest = run_paramtest(learner, fun, exclude)
expect_true(ParamTest, info = paste0(
"\nMissing parameters:\n",
paste0("- '", ParamTest$missing, "'", collapse = "\n")))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.