Skip to content

Commit 1956bc8

Browse files
authored
[DOC] Missing parenthesis in docstring of MASE (#1944)
There is a missing parenthesis in the documentation of the function MASE. ``` Current: (y_pred - target).abs() / all_targets[:, :-1] - all_targets[:, 1:]).mean(1) ^ | v Correct: (y_pred - target).abs() / (all_targets[:, :-1] - all_targets[:, 1:]).mean(1)
1 parent f87bb56 commit 1956bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_forecasting/metrics/point.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class MASE(MultiHorizonMetric):
166166
"""
167167
Mean absolute scaled error
168168
169-
Defined as ``(y_pred - target).abs() / all_targets[:, :-1] - all_targets[:, 1:]).mean(1)``.
169+
Defined as ``(y_pred - target).abs() / (all_targets[:, :-1] - all_targets[:, 1:]).mean(1)``.
170170
``all_targets`` are here the concatenated encoder and decoder targets
171171
""" # noqa: E501
172172

0 commit comments

Comments
 (0)