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で学ぶ異常検知入門