Introduction à la détection d’anomalies en R
Alastair Rushworth
Data Scientist


library(isofor)furniture_tree <- iForest(data = furniture, nt = 1)
Arguments de iForest()
data - dataframent - nombre d'arbres d'isolation à entraîner
Téléchargement du package sur https://github.com/Zelazny7/isofor
furniture_score <- predict(furniture_tree, newdata = furniture)
Arguments de predict()
object - un modèle iForest ajusténewdata - données à scorerfurniture_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
Longueur de chemin standardisée
Introduction à la détection d’anomalies en R