Class labels of the training set (vector or factor).
randomvar
If TRUE, the stump is built on a single variable drawn at random
instead of the best one (useful to build weak learners for an ensemble method). Note that
the model then differs from one call to the next unless seed is set. Defaults to
FALSE, i.e. the usual decision stump, split on the variable selected by CART.
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: STUMP does not
support reusing pre-tuned parameters.
graph
Present for interface consistency with performance (which always
passes it when fitting a model). Currently unused: STUMP does not produce a plot.
seed
A specified seed for random number generation (used only if randomvar is TRUE).