tests/testthat/test_paramtest_plugdensity_dens_plug.R

test_that("dens.plug", {
  learner = lrn("dens.plug")
  fun = plugdensity::plugin.density
  exclude = c(
    "x", # handled internally
    "nout", # not required when `xout` used
    "xout" # handled in predict
  )

  paramtest = run_paramtest(learner, fun, exclude)
  expect_paramtest(paramtest)
})

# no predict time parameters
mlr-org/mlr3extralearners documentation built on April 13, 2024, 5:25 a.m.