STUMP | R Documentation |
This function builds a classification model using CART with maxdepth = 1.
STUMP(train, labels, randomvar = TRUE, tune = FALSE, ...)
train |
The training set (description), as a |
labels |
Class labels of the training set ( |
randomvar |
If true, the model uses a random variable. |
tune |
If true, the function returns paramters instead of a classification model. |
... |
Other parameters. |
The classification model.
CART
require (datasets)
data (iris)
STUMP (iris [, -5], iris [, 5])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.