sk_tree | R Documentation |
SK Tree Models tree functions tree examples
sk_tree()
python object
library(tidyverse)
X <- iris %>% select_if(is.numeric) %>% as_tibble()
target <- iris %>% pull(Species)
tree <- sk_tree()
tree_classifier <- tree$DecisionTreeClassifier()
model <- tree_classifier$fit(X = X, y = target)
model$predict(X = X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.