| BagModel-class {UBL} | R Documentation |
Class "BagModel"
Description
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 from BagModel Class
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.
Slots
formformula
traintraining set used to train the
baseModelslearnerthe 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
averagemethod 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