Skip to content

Commit

Permalink
Fix return type in gluonts.evaluation.metrics (#2989)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostella authored Aug 31, 2023
1 parent 66c00c4 commit 0ac9b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gluonts/evaluation/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def coverage(target: np.ndarray, forecast: np.ndarray) -> float:
coverage = mean(Y <= \hat{Y})
"""
return np.mean(target <= forecast)
return float(np.mean(target <= forecast))


def mase(
Expand Down

0 comments on commit 0ac9b7d

Please sign in to comment.