powered by
Classification tree using rpart::rpart.
rpart::rpart
cla_rpart(attribute)
returns a cla_rpart object
cla_rpart
target attribute name
if (requireNamespace("rpart", quietly = TRUE)) { data(iris) model <- cla_rpart("Species") model <- fit(model, iris) pred <- predict(model, iris) table(pred, iris$Species) }
Run the code above in your browser using DataLab