powered by
Ensemble learning, through Bagging Algorithm.
BAGGING( x, y, learningmethod, nsamples = 100, bag.size = nrow(x), seed = NULL, ... )
The dataset (description/predictors), a matrix or data.frame.
matrix
data.frame
The target (class labels or numeric values), a factor or vector.
factor
vector
The boosted method.
The number of samplings.
The size of the samples.
A specified seed for random number generation.
Other specific parameters for the leaning method.
The classification model.
ADABOOST, predict.boosting
ADABOOST
predict.boosting
# NOT RUN { require (datasets) data (iris) BAGGING (iris [, -5], iris [, 5], NB) # }
Run the code above in your browser using DataLab