Shortcuts

Root Mean Squared Error Using Sliding Window

Module Interface

torchmetrics.RootMeanSquaredErrorUsingSlidingWindow[source]

alias of _RootMeanSquaredErrorUsingSlidingWindow

Functional Interface

torchmetrics.functional.root_mean_squared_error_using_sliding_window(preds, target, window_size=8, return_rmse_map=False)[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:data:`~typing.Union`\[:py:class:`~torch.Tensor`, :py:obj:`None`, :py:data:`~typing.Tuple`\[:py:data:`~typing.Optional`\[:py:class:`~torch.Tensor`], :py:class:`~torch.Tensor`]]
>>> _root_mean_squared_error_using_sliding_window(preds, target)
tensor(0.3999)