Skip to content

Commit

Permalink
correction of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil Smorchkov authored and Danil Smorchkov committed Dec 23, 2024
1 parent 1dd99a7 commit 7b3278e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etna/metrics/functional_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ def msle(y_true: ArrayLike, y_pred: ArrayLike, multioutput: str = "joint") -> Ar
:
ValueError:
If the shapes of the input arrays do not match.
ValueError:
If input arrays contain negative values.
"""
y_true_array, y_pred_array = np.asarray(y_true), np.asarray(y_pred)
Expand All @@ -533,7 +534,7 @@ def msle(y_true: ArrayLike, y_pred: ArrayLike, multioutput: str = "joint") -> Ar
raise ValueError("Shapes of the labels must be the same")

if (y_true_array < 0).any() or (y_pred_array < 0).any():
raise ValueError("Mean Squared Logarithmic Error cannot be used when targets contain negative values.")
raise ValueError("Mean squared logarithmic error cannot be used when targets contain negative values.")

axis = _get_axis_by_multioutput(multioutput)

Expand Down

0 comments on commit 7b3278e

Please sign in to comment.