BagModel-class | R Documentation |
BagModel is an S4 class that contains the information of a bagging ensemble model.
Besides the base learning algorithms–baseModels
–
BagModel class contains information regarding the
type of weak learners selected, the learned models and the aggregation method to apply in the
test set for obtaining the final predictions.
Objects can be created by calls to the constructor
BagModel(...)
. The constructor requires a formula and a training set,
the selected model type, the base models learned and the aggregation method
to use for obtaining the final predictions.
form
formula
train
training set used to train the baseModels
learner
the weak learners type used
learner.pars
the parameters of the used learners
baseModels
a list of base learners
aggregation
the aggregation method
used to obtain the final predictions. For now, only the average
method is available.
rel
optional information regarding the relevance function definde for the problem. Should be provided as a matrix.
thr.rel
Optional number setting the threshold on the relevance values.
quiet
logical specifying if development should be shown or not. Defaults to TRUE
BaggingRegress
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.