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.
Este ejercicio forma parte del curso
Introduction to Anomaly Detection in R
Instrucciones del ejercicio
- Generate predictions from the isolation forest and append this as a new column called
scoreto thewine_griddata frame.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
# Calculate isolation score at grid locations
___ <- predict(___, ___)