Learn R Programming

medley (version 0.1.0)

add.medley: Add a new model to an existing medley

Description

Add a new model to an existing medley

Usage

add.medley(object, model, args = list(), predict.args = list(), feature.subset = NULL, folds = object$folds, postprocess = c())

Arguments

object
the medley to be added to
model
the model fitting function
args
a list of extra arguments to model
predict.args
a list of extra arguments to the predict function for model
feature.subset
a subset of the features to use
folds
the number of cross-validation folds to use
postprocess
an optional function to apply to the predicted values