Introduktion till avvikelsedetektering i R
Alastair Rushworth
Data Scientist


library(isofor)furniture_tree <- iForest(data = furniture, nt = 1)
iForest() – argument
data - dataramnt - antal isoleringsträd att bygga
Package download from https://github.com/Zelazny7/isofor
furniture_score <- predict(furniture_tree, newdata = furniture)
predict() – argument
object - en anpassad iForest-modellnewdata - data att poängsättafurniture_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
Standardiserad sökvägslängd
Introduktion till avvikelsedetektering i R