1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Anomaly Detection in R

Connected

Exercise

Thyroid precision and recall

Cross-tabulating the agreement between a binary score and a known label is a great way to understand how well the algorithm performs. Precision and recall are two further measures based on the table that give more insight into how well the score performs.

In this exercise, you'll explore precision and recall using the thyroid data. The binary_lof and binary_iso scores created in the previous exercises are available to use as columns in the thyroid data. The code used to tabulate agreements in the previous exercise is also included.

Instructions 1/3

undefined XP
    1
    2
    3
  • Calculate the precision for both the LOF score in binary_lof and isolation score in binary_iso.