The dataset (description/predictors), a matrix or data.frame.
y
The target (class labels or numeric values), a factor or vector.
learningmethod
The boosted method.
nsamples
The number of samplings.
bag.size
The size of the samples.
tune
If true, the function returns parameters instead of a classification model.
methodparameters
Present for interface consistency with performance
(which always passes it when fitting a model). Currently unused: BAGGING does not
support reusing pre-tuned parameters (the base learner is fitted afresh on each sample).
graph
Present for interface consistency with performance (which always
passes it when fitting a model). Currently unused: BAGGING does not produce a plot.