Description Usage Arguments Details Value See Also Examples
"optimal_bins"에 대한 요약 방법. 이항 분류 모델의 성능을 평가하기 위한 요약 메트릭
1 2 |
object |
"optimal_bins" 클래스 객체로, binning_by()을 호출했을 때의 일반적인 결과 |
... |
다른 메서드에서 또는 다른 메서드로 전달되는 추가 인수 |
print()는 "optimal_bins" 객체의 비닝 테이블 정보만을 출력합니다. summary.performance_bin()은 일반 메트릭 및 유의성 검정을 따른 결과를 포함합니다.:
Binning Table : 빈(bin)별 메트릭
CntRec, CntPos, CntNeg, RatePos, RateNeg, Odds, WoE, IV, JSD, AUC.
일반 메트릭
지니 계수
제프리(Jeffrey)의 정보 가치
젠슨-샤논(Jensen-Shannon) 발산
콜모고로프-스미르노프(Kolmogorov-Smirnov) 통계량
허핀달-허쉬만(Herfindahl-Hirschman) 지수
정규화된 허핀달-허쉬만(Herfindahl-Hirschman) 지수
크래머(Cramer)의 V 통계량
유의성 검정 표
NULL.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | library(dplyr)
# 예제를 위한 데이터 생성
heartfailure2 <- heartfailure
heartfailure2[sample(seq(NROW(heartfailure2)), 5), "creatinine"] <- NA
# 최적 비닝
bin <- binning_by(heartfailure2, "death_event", "creatinine")
bin
# optimal_bins 클래스의 요약
summary(bin)
# 성능 테이블
attr(bin, "performance")
# optimal_bins 클래스의 모든 정보 시각화
plot(bin)
# optimal_bins 클래스의 WoE 정보 시각화
plot(bin, type = "WoE")
# optimal_bins 클래스의 모든 정보 시각화(타이포 그래픽 제외)
plot(bin, typographic = FALSE)
# 비닝된 결과의 추출
extract(bin) %>%
head(20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.