Signal Research Security

Isolation Forest: max_samples=1.0 boosts anomaly detection

A Reddit user found that setting `max_samples` to 1.0 significantly improved Isolation Forest performance for anomaly detection on the CICIDS2017 dataset, contradicting common low-value recommendations.

NOW
On the radar: positioned inside the Research wedge
40% of Security is also ResearchAI-Agents34% / 29%OpenSource16% / 17%APIs12%Tools11% / 8%Architecture11%Coding7% / 9%MCP6%Research1,271 signalsSecurity484 signalsIsolationForest:…ResearchINNER RING: THIS SIGNAL’S TAGS · OUTER RING: WHERE THOSE TAGS USUALLY SPILL OVER

Blast radius

Field notes

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.

The outer ring is measured, not guessed. Across all 3,941 signals, 34% of those tagged Research are also AI-Agents and 16% are also OpenSource.

reddit.com ↗

How we heard it

  1. 1
    ORIGIN · SOCIAL ONLY reddit.com ↗ Picked up from a social thread or aggregator feed rather than a standalone canonical post.
  2. 2
    COLLECTOR reddit Picked up by reddit, one of 174 channels feeding the scope.
  3. 3
    PUBLISHED Live on publish; joins the scope at the next rebuild.

Heard in the same 48 hours