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.
This repository is a template repository to create a learner that aligns with existing mlr3 learners. Perform the following tasks to create your learner:
<package>
with the name of the underlying package.<type>
with the learner type, e.g. Classif
or Regr
.<algorithm>
with the name of the algorithm, e.g randomForest
.importance()
method in the respective learner class.oob_error()
method in the respective learner class.DESCRIPTION
.tic::use_ghactions_deploy()
tic::use_ghactions_yml()
README.md
with the learner name.devtools::document(roclets = c('rd', 'collate', 'namespace'))
to create the NAMESPACE and man/ files.man-roxygen
as they are - they will just work.devtools::test()
rcmdcheck::rcmdcheck()
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.
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>")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.