• Docs >
  • Spectral Distortion Index
Shortcuts

Spectral Distortion Index

Module Interface

torchmetrics.SpectralDistortionIndex[source]

alias of torchmetrics.image._deprecated._SpectralDistortionIndex

Functional Interface

torchmetrics.functional.spectral_distortion_index(preds, target, p=1, reduction='elementwise_mean')[source]

Wrapper for deprecated import.

>>> import torch
>>> _ = torch.manual_seed(42)
>>> preds = torch.rand([16, 3, 16, 16])
>>> target = torch.rand([16, 3, 16, 16])
>>> _spectral_distortion_index(preds, target)
tensor(0.0234)
Return type

Tensor