#757·pyod

DeepSVDD: `validation_size` is documented but never used

Author: owgreen-devCreated Sep 26, 2026Updated Sep 26, 2026

Docstring (pyod/models/deep_svdd.py:217-218):

validation_size : float in (0., 1), optional (default=0.1)
    The percentage of data to be used for validation.

Stored at deep_svdd.py:287, never read. There is no validation split anywhere in fit; the only trace is a Keras-era comment at deep_svdd.py:329:

python
# Shuffle the data for validation as Keras do not shuffling for
# Validation Split
np.random.shuffle(X_norm)

DeepSVDD(n_features=5, validation_size=0.5) trains on 100% of the data.

Why it matters: the parameter suggests a held-out loss is monitored (as the Keras version did with validation_split); nothing is. Since v3.6.3 touched this model's training loop it seems worth deciding whether the port should carry a validation split or drop the parameter. Same shape as #714.

Proposed fix: either implement the split (hold out validation_size of X_norm, report validation loss when verbose) or remove the parameter with a deprecation. Happy to PR.

Verified on v3.6.6; drafted with Claude Code assistance and checked by hand.