tests/testthat/test_regr_randomForest.R

context("regr.randomForest")

test_that("autotest", {
  learner = LearnerRegrRandomForest$new()
  learner$param_set$values = list("importance" = "mse")
  expect_learner(learner)
  result = run_autotest(learner)
  expect_true(result, info = result$error)
})
mlr3learners/mlr3learners.randomForest documentation built on June 4, 2020, 9:21 a.m.