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 23, 2020, 8:56 a.m.