BaşlayınÜcretsiz Başlayın

LOF visualization

As with kNN distance scoring, a scatterplot can be a useful visual aid for understanding why a low or high score has been assigned. In this exercise, the LOF score is visualized by scaling the points according to the size of the score. You should notice some differences in the location of points with highest scores compared to kNN distance.

The wine data for this exercise already contains the score column appended in the previous exercise.

Bu egzersiz

Introduction to Anomaly Detection in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Use a scatterplot to show pH against alcohol from the wine data. The points should be shown as solid bullets whose size depends on the LOF score.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Scatterplot showing pH, alcohol and LOF score
plot(pH ~ alcohol, ___)
Kodu Düzenle ve Çalıştır