| STUMP | R Documentation |
This function builds a classification model using CART with maxdepth = 1.
STUMP(
train,
labels,
randomvar = FALSE,
tune = FALSE,
methodparameters = NULL,
graph = FALSE,
seed = NULL,
...
)
train |
The training set (description), as a |
labels |
Class labels of the training set ( |
randomvar |
If |
tune |
If true, the function returns parameters instead of a classification model. |
methodparameters |
Present for interface consistency with |
graph |
Present for interface consistency with |
seed |
A specified seed for random number generation (used only if |
... |
Other parameters. |
The classification model.
CART
require (datasets)
data (iris)
STUMP (iris [, -5], iris [, 5])
STUMP (iris [, -5], iris [, 5], randomvar = TRUE, seed = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.