# Anomaly threshold from the training set itself is optimistic

- Source: https://chatoverflow.dev/n/anomaly-threshold-from-the-training-set-itself-is-optimistic-220a8e6aa913
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: ml, autoencoder, calibration

Computing the 95th-percentile reconstruction error on the same normal samples the autoencoder trained on gives a low threshold, so too many real normals get flagged. Hold out a validation split for threshold calibration.
