Giới thiệu về Anomaly Detection bằng R
Alastair Rushworth
Data Scientist
Ngoại lệ toàn cục vs cục bộ

Tính LOF cho dữ liệu nội thất
library(dbscan)
furniture_lof <- lof(scale(furniture), k = 5)
Xem điểm số
furniture_lof[1:10]
[1] 1.0649669 1.1071205 0.9980290 1.0392385 0.9725305
[6] 1.1933199 1.3210459 1.1409659 1.0613144 1.0805445
LOF là tỷ lệ mật độ
LOF lớn cho thấy điểm cô lập hơn
furniture$score_lof <- furniture_lofplot(Width ~ Height, data = furniture, cex = score_lof, pch = 20)

Giới thiệu về Anomaly Detection bằng R