A grid of points
In the video, you saw how it can be instructive to use a contour plot over a grid of points to see what the anomaly score might have been at locations other than where the data occurred.
In this exercise you'll create and visualize a grid of points across the region of interest. The grid you create will be used in the exercise that follows to visualize predicted isolation scores.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Introduction to Anomaly Detection in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Sequence of values for pH and alcohol
ph_seq <- seq(min(___), max(___) , length.out = ___)
alcohol_seq <- seq(___)