| 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.
formformula
traintraining set used to train the baseModels
learnerthe weak learners type used
learner.parsthe parameters of the used learners
baseModelsa list of base learners
aggregationthe aggregation method
used to obtain the final predictions. For now, only the average method is available.
reloptional information regarding the relevance function definde for the problem. Should be provided as a matrix.
thr.relOptional number setting the threshold on the relevance values.
quietlogical 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.