| cla_rpart | R Documentation |
Classification tree using rpart::rpart.
cla_rpart(attribute)
attribute |
target attribute name |
returns a cla_rpart object
if (requireNamespace("rpart", quietly = TRUE)) {
data(iris)
model <- cla_rpart("Species")
model <- fit(model, iris)
pred <- predict(model, iris)
table(pred, iris$Species)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.