Shortcuts

Spectral Distortion Index

Module Interface

torchmetrics.SpectralDistortionIndex[source]

alias of _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])
:rtype: :py:class:`~torch.Tensor`
>>> _spectral_distortion_index(preds, target)
tensor(0.0234)