R로 시작하는 이상치 탐지 입문
Alastair Rushworth
Data Scientist


library(isofor)furniture_tree <- iForest(data = furniture, nt = 1)
iForest() 인수
data - 데이터프레임nt - 생성할 아이솔레이션 트리 수
패키지 다운로드: https://github.com/Zelazny7/isofor
furniture_score <- predict(furniture_tree, newdata = furniture)
predict() 인수
object - 적합된 iForest 모델newdata - 점수화할 데이터furniture_score[1:10]
[1] 0.5820092 0.5820092 0.5439338 0.5820092 0.5439338
[6] 0.5820092 0.7129862 0.5363547 0.5363547 0.5363547
표준화 경로 길이
R로 시작하는 이상치 탐지 입문