Function used to run a learning process.
The function invokes particular methods which depend on the
presence of the second argument. If hyperparameters
is provided then a tuning is performed, while a training
is run otherwise.
Usage
learn(learner, hyperparameters, ...)
# S4 method for Learner
learn(learner, hyperparameters = NULL, ...)
Arguments
- learner
an object of class Learner
- hyperparameters
(optional) list containing the hyperparameters to tune
- ...
additional arguments affecting the learning procedure
Value
The form of the returned object depends on the type of learning. See the documentation of the particular method for further details.
See also
tune
,
train