Виявлення аномалій у Python
Bekhruz (Bex) Tuychiev
Kaggle Master, Data Science Content Creator
Гіперпараметри, що найбільше впливають на IForest:
contaminationn_estimatorsmax_samplesmax_featuresЯк IForest класифікує точки даних:
contaminationcontamination, позначається як викиди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