% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RLearner.R
\name{RLearner}
\alias{RLearner}
\alias{RLearnerClassif}
\alias{RLearnerCluster}
\alias{RLearnerMultilabel}
\alias{RLearnerRegr}
\alias{RLearnerSurv}
\alias{makeRLearner}
\alias{makeRLearnerClassif}
\alias{makeRLearnerMultilabel}
\alias{makeRLearnerRegr}
\alias{makeRLearnerSurv}
\alias{makeRLearnerCluster}
\alias{makeRLearnerCostSens}
\title{Internal construction / wrapping of learner object.}
\usage{
makeRLearner()

makeRLearnerClassif(cl, package, par.set, par.vals = list(),
  properties = character(0L), name = cl, short.name = cl, note = "",
  class.weights.param = NULL)

makeRLearnerMultilabel(cl, package, par.set, par.vals = list(),
  properties = character(0L), name = cl, short.name = cl, note = "")

makeRLearnerRegr(cl, package, par.set, par.vals = list(),
  properties = character(0L), name = cl, short.name = cl, note = "")

makeRLearnerSurv(cl, package, par.set, par.vals = list(),
  properties = character(0L), name = cl, short.name = cl, note = "")

makeRLearnerCluster(cl, package, par.set, par.vals = list(),
  properties = character(0L), name = cl, short.name = cl, note = "")

makeRLearnerCostSens(cl, package, par.set, par.vals = list(),
  properties = character(0L), name = cl, short.name = cl, note = "")
}
\arguments{
\item{cl}{[\code{character(1)}]\cr
Class of learner. By convention, all classification learners
start with \dQuote{classif.}, all regression learners with
\dQuote{regr.}, all survival learners start with \dQuote{surv.},
all clustering learners with \dQuote{cluster.}, and all multilabel
classification learners start with \dQuote{multilabel.}.
A list of all integrated learners is available on the
\code{\link{learners}} help page.}

\item{package}{[\code{character}]\cr
Package(s) to load for the implementation of the learner.}

\item{par.set}{[\code{\link[ParamHelpers]{ParamSet}}]\cr
Parameter set of (hyper)parameters and their constraints.
Dependent parameters with a \code{requires} field must use \code{quote} and not
\code{expression} to define it.}

\item{par.vals}{[\code{list}]\cr
Always set hyperparameters to these values when the object is constructed.
Useful when default values are missing in the underlying function.
The values can later be overwritten when the user sets hyperparameters.
Default is empty list.}

\item{properties}{[\code{character}]\cr
Set of learner properties. See above.
Default is \code{character(0)}.}

\item{name}{[\code{character(1)}]\cr
Meaningful name for learner.
Default is \code{id}.}

\item{short.name}{[\code{character(1)}]\cr
Short name for learner.
Should only be a few characters so it can be used in plots and tables.
Default is \code{id}.}

\item{note}{[\code{character(1)}]\cr
Additional notes regarding the learner and its integration in mlr.
Default is \dQuote{}.}

\item{class.weights.param}{[\code{character(1)}]\cr
Name of the parameter, which can be used for providing class weights.}
}
\value{
[\code{\link{RLearner}}]. The specific subclass is one of \code{\link{RLearnerClassif}},
  \code{\link{RLearnerCluster}}, \code{\link{RLearnerMultilabel}},
  \code{\link{RLearnerRegr}}, \code{\link{RLearnerSurv}}.
}
\description{
Wraps an already implemented learning method from R to make it accessible to mlr.
Call this method in your constructor. You have to pass an id (name), the required
package(s), a description object for all changeable parameters (you do not have to do this for the
learner to work, but it is strongly recommended), and use property tags to define
features of the learner.

For a general overview on how to integrate a learning algorithm into mlr's system, please read the
section in the online tutorial:
\url{http://mlr-org.github.io/mlr-tutorial/release/html/create_learner/index.html}

To see all possible properties of a learner, go to: \code{\link{LearnerProperties}}.
}
