Prints summary for a conftree
summary.conftree.Rd
Prints summary for a conftree
Usage
# S3 method for class 'conftree'
summary(object, ...)
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
)
summary(groups)
#> Conformal tree with 2 subgroups:
#> n mean width deviation
#> 1 231 49.91 85.53 1.07
#> 2 496 289.73 249.85 13.75
#> ---
#> Alpha: 0.05 Lambda: 0.5 Gamma: 0.2