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

Prediction over a grid

In this exercise, you'll use an isolation forest to obtain an anomaly score for the grid of points you created in the last exercise. Getting the anomaly score is the final preparatory step required to visualize the isolation scores.

The data frame wine_grid and fitted isolation forest wine_forest from the previous exercise are preloaded.

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

Introduction to Anomaly Detection in R

ดูคอร์ส

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

  • Generate predictions from the isolation forest and append this as a new column called score to the wine_grid data frame.

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

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

# Calculate isolation score at grid locations
___ <- predict(___, ___)
แก้ไขและรันโค้ด