Print a conftree
print.conftree.Rd
Print a conftree
Usage
# S3 method for class 'conftree'
print(x, ...)
Examples
library(tidymodels)
library(ranger)
data(bikes)
set.seed(1234)
randforest <- rand_forest(trees = 200, min_n = 5) %>%
set_mode("regression") %>%
set_engine("ranger")
groups <- r2p(
data = bikes,
target = "count",
learner = randforest,
cv_folds = 2,
alpha = 0.05,
gamma = 0.2,
lambda = 0.5,
max_groups = 3
)
print(groups)
#> Conformal tree with 2 subgroups:
#> [1] root
#> | [2] workingday in False: *
#> | [3] workingday in True: *
#> ---
#> * terminal nodes (subgroups)