View source: R/BaggingRegress.R
BaggingRegress | R Documentation |
This function handles regression problems through ensemble learning. A given number of weak learners selected by the user are trained on bootstrap samples of the training data provided.
BaggingRegress(form, train, nmodels, learner, learner.pars,
aggregation = "Average", quiet=TRUE)
form |
A formula describing the prediction problem. |
train |
A data frame containing the training (imbalanced) data set. |
nmodels |
A numeric indicating the number of models to train. |
learner |
The learning algorithm to be used as weak learner. |
learner.pars |
A named list with the parameters selected for the learner. |
aggregation |
charater specifying the method used for aggregating the results obtained by the individual learners. For now, the only method available is by averaging the models predictions. |
quiet |
logical specifying if development should be shown or not.Defaults to TRUE |
The function returns an object of class BagModel.
Paula Branco paobranco@gmail.com, Rita Ribeiro rpribeiro@dcc.fc.up.pt and Luis Torgo ltorgo@dcc.fc.up.pt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.