เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Anomaly contours

You now have the key ingredients to produce a contour plot, which is a powerful tool for viewing how the anomaly score varies across the region spanned by the data points.

The wine_grid data from the previous exercise has been preloaded for you to use.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Introduction to Anomaly Detection in R

ดูคอร์ส

คำแนะนำการฝึกหัด

  • Use the contourplot() function to generate a contour plot of the score.
  • Ensure that the pH variable is shown on the y-axis and alcohol on the x-axis.

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Contour plot of isolation scores
contourplot(score ~ ___ + ___, ___, region = TRUE)
แก้ไขและรันโค้ด