Session Ready
Exercise

Not all metrics agree

In the previous exercise you saw that not all metrics agree when it comes to identifying nearest neighbors. But does this mean they might disagree on outliers, too? You decide to put this to the test. You use the same data as before, but this time feed it into a local outlier factor outlier detector. The module LocalOutlierFactor has been made available to you as lof, and the data is available as features.

Instructions
100 XP
  • Detect outliers in features using the euclidean metric.
  • Detect outliers in features using the hamming metric.
  • Detect outliers in features using the jaccard metric.
  • Find if all three metrics agree on any one outlier.