README.md

mlr3learners.template

This packages provides a template for adding new learners for mlr3.

Creating new learners is covered in section "Adding new learners" in the mlr3book. This package serves as a starting point for learners to share with others.

Instructions

This repository is a template repository to create a learner that aligns with existing mlr3 learners. Perform the following tasks to create your learner:

  1. Replace all instances of
  2. <package> with the name of the underlying package.
  3. <type> with the learner type, e.g. Classif or Regr.
  4. <algorithm> with the name of the algorithm, e.g randomForest.
  5. Rename files following the same scheme as in 1).
  6. Check if the learner supports feature importance internally. If yes, add a importance() method in the respective learner class.
  7. Check if the learner supports out-of-bag error estimation internally. If yes, add a oob_error() method in the respective learner class.
  8. Add yourself as the maintainer in DESCRIPTION.
  9. Set up Continuous Integration (CI). To do so, you need admin permission for the repository.
  10. Run tic::use_ghactions_deploy()
  11. Run tic::use_ghactions_yml()
  12. Fix the badge in README.md with the learner name.
  13. Run devtools::document(roclets = c('rd', 'collate', 'namespace')) to create the NAMESPACE and man/ files.
  14. Leave the files in man-roxygen as they are - they will just work.
  15. Test your learner locally by running devtools::test()
  16. Check your package by running rcmdcheck::rcmdcheck()
  17. Check if your learner complies with the mlr style guide.

After your learner is accepted, it can be added to mlr3learners.drat, making it installabe via the canonical install.packages() function without the need to live on CRAN.

!Important!: Delete all instructions up to this point and just leave the part below.

mlr3learners.\<package>

R CMD Check via {tic} codecov StackOverflow

Adds <algorithm1> and <algorithm2> from the {} package to {mlr3}.

Install the latest release of the package via

install.packages("mlr3learners.<package>")

by following the instructions in the mlr3learners.drat README.

Alternatively, you can install the latest version of {mlr3learners.} from Github with:

remotes::install_github("mlr3learners/mlr3learners.<package>")


henrifnk/nnet documentation built on March 29, 2020, 12:57 a.m.