Phát hiện bất thường với Python
Bekhruz (Bex) Tuychiev
Kaggle Master, Data Science Content Creator
Siêu tham số ảnh hưởng nhiều nhất đến IForest:
contaminationn_estimatorsmax_samplesmax_featuresCách IForest phân loại điểm dữ liệu:
contaminationcontamination được chọn là điểm ngoại lệfrom pyod.models.iforest import IForest# Nhận giá trị từ 0 đến 0.5 iforest = IForest(contamination=0.05)
# Nhiều cây hơn cho tập dữ liệu lớn
iforest = IForest(n_estimators=1000)
iforest.fit(airbnb_df)
iforest = IForest(n_estimators=200, max_samples=0.6, max_features=0.9)iforest.fit(airbnb_df)
Phát hiện bất thường với Python