R로 배우는 트리 기반 Machine Learning
Sandro Raabe
Data Scientist

1. 부트스트래핑
2. 집계


library(baguette) spec_bagged <- bag_tree() %>%set_mode("classification") %>%set_engine("rpart", times = 100)
배깅 의사결정나무 모델 사양 (분류)
주요 인자:
cost_complexity = 0
min_n = 2
엔진별 인자:
times = 100
계산 엔진: rpart
model_bagged <- fit(spec_bagged, formula = still_customer ~ ., data = customers_train)
parsnip 모델 객체 적합 시간: 23.9초배깅 CART (100개 구성원의 분류)변수 중요도 점수: # A tibble: 19 x 4 term value std.error used <chr> <dbl> <dbl> <int> 1 total_trans_ct 876. 3.93 100 2 total_trans_amt 800. 4.54 100 3 total_revolving_bal 491. 3.67 100
R로 배우는 트리 기반 Machine Learning