Get startedGet started for free

Binarized scores

It's worthwhile to compare the performance of more than one anomaly detection algorithm before deciding which to use.

In this exercise, you'll construct a pair of binary anomaly scores based on local outlier factor (LOF) and the isolation forest. The isolation score vector iso_score generated in the previous exercise is preloaded for you to use.

This exercise is part of the course

Introduction to Anomaly Detection in R

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Scale the measurement columns of thyroid
scaled_thyroid_measurements <- ___(___)

# Create a LOF score for the measurements
lof_score <- ___(___, ___)
Edit and Run Code