Wykrywanie anomalii w Pythonie
Bekhruz (Bex) Tuychiev
Kaggle Master, Data Science Content Creator
Hiperparametry najbardziej wpływające na IForest:
contaminationn_estimatorsmax_samplesmax_featuresSposób klasyfikowania punktów danych przez IForest:
contaminationcontamination jest wybierany jako wartości odstającefrom pyod.models.iforest import IForest# Accepts a value between 0 and 0.5 iforest = IForest(contamination=0.05)
# More trees for larger datasets
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)
Wykrywanie anomalii w Pythonie