regression
takes data
and processes it using pre
(if
supplied). If no algorithm features are provided, regressor
is called to induce separate regression models for
each of the algorithms to predict its performance. When algorithm features are present,
regressor
is called to induce one regression model for all algorithms to predict their performance.
The best algorithm is
determined from the predicted performances by examining whether performance is
to be minimized or not, as specified when creating the data structure through
input
.
The evaluation across the training and test sets will be parallelized
automatically if a suitable backend for parallel computation is loaded.
The parallelMap
level is "llama.fold".
If combine
is not null, it is assumed to be an mlr classifier and will be
used to learn a model to predict the best algorithm given the original features
and the performance predictions for the individual algorithms. combine
option
is currently not supported with algorithm features. If this
classifier supports weights and use.weights
is TRUE
, they will be
passed as the difference between the best and the worst algorithm. Optionally,
expand
can be used to supply a function that will modify the predictions
before giving them to the classifier, e.g. augment the performance predictions
with the pairwise differences (see examples).
If all predictions of an underlying machine learning model are NA
, the
prediction will be NA
for the algorithm and -Inf
for the score if
the performance value is to be maximised, Inf
otherwise.
If save.models
is not NA
, the models trained during evaluation are
serialized into files. Each file contains a list with members model
(the
mlr model), train.data
(the mlr task with the training data), and
test.data
(the data frame with the test data used to make predictions).
The file name starts with save.models
, followed by the ID of the machine
learning model, followed by "combined" if the model combines predictions of
other models, followed by the number of the fold. Each model for each fold is
saved in a different file.