Summary: A user training an Isolation Forest model for anomaly detection on the CICIDS2017 dataset discovered that using max_samples=1.0 (the maximum value) yielded superior performance compared to lower values like 200k. This configuration achieved approximately 94% recall and 7.6% FPR, outperforming 200k samples which resulted in 91% recall and 10% FPR, with only a marginal increase in training time.
Why it matters: This finding challenges conventional wisdom regarding max_samples in Isolation Forest, suggesting that higher values, even 1.0, can be beneficial for specific anomaly detection tasks. AI builders should experiment with max_samples=1.0 when training Isolation Forest models, especially when anomalies are not present in the training data, to potentially achieve better detection rates.