Class "BagModel"
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.
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.
form
: formulatrain
: training set used to train the baseModels
learner
: the weak learners type usedlearner.pars
: the parameters of the used learnersbaseModels
: a list of base learnersaggregation
: 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 TRUEBaggingRegress