Fit an isolation forest
An isolation forest is a collection of isolation trees, and uses exactly the same commands that you used in the previous lesson to grow a single isolation tree. In this exercise, you'll practice fitting an isolation forest to the wine
data.
When growing an isolation forest you should to pay particular attention to the number of trees and the number of points sampled to grow each tree.
This exercise is part of the course
Introduction to Anomaly Detection in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Fit isolation forest
wine_forest <- iForest(___)