BagModel-class function

Class "BagModel"

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 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

  • 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

See Also

BaggingRegress

  • Maintainer: Paula Branco
  • License: GPL (>= 2)
  • Last published: 2023-10-07