Python으로 배우는 이상치 탐지
Bekhruz (Bex) Tuychiev
Kaggle Master, Data Science Content Creator
IForest에 가장 큰 영향을 주는 하이퍼파라미터:
contaminationn_estimatorsmax_samplesmax_featuresIForest가 데이터 포인트를 분류하는 방법:
contamination 임계값 설정contamination이 지정한 상위 비율의 점수를 이상치로 선택from pyod.models.iforest import IForest# 0~0.5 사이 값 허용 iforest = IForest(contamination=0.05)
# 큰 데이터셋에는 더 많은 트리
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)
Python으로 배우는 이상치 탐지