tests/testthat/test_classif_nnet.R

skip_if_not_installed("nnet")
skip_on_cran() # numerically instable with ATLAS blas

test_that("autotest", {
  learner <- mlr3::lrn("classif.nnet")
  expect_learner(learner)
  result <- run_autotest(learner)
  expect_true(result, info = result$error)
})

Try the mlr3learners package in your browser

Any scripts or data that you put into this service are public.

mlr3learners documentation built on Nov. 21, 2023, 5:07 p.m.