Shortcuts

Relative Average Spectral Error (RASE)

Module Interface

torchmetrics.RelativeAverageSpectralError[source]

alias of _RelativeAverageSpectralError

Functional Interface

torchmetrics.functional.relative_average_spectral_error(preds, target, window_size=8)[source]

Wrapper for deprecated import.

>>> import torch
>>> g = torch.manual_seed(22)
>>> preds = torch.rand(4, 3, 16, 16)
>>> target = torch.rand(4, 3, 16, 16)
:rtype: :py:class:`~torch.Tensor`
>>> _relative_average_spectral_error(preds, target)
tensor(5114.6641)