1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Anomaly Detection in Python

Connected

अभ्यास

Alternative way of classifying with IForest

Until now, you have been using the .fit_predict() method to fit IForest and generate predictions simultaneously. However, pyod documentation suggests using the fit function first and accessing the inlier/outlier labels_ via a handy attribute.

You will practice this on the big_mart dataset.

निर्देश

100 XP
  • Fit (only fit) the IForest() estimator to big_mart.
  • Access the training labels and store them as labels.
  • Use pandas subsetting on big_mart to filter the outliers into outliers.