diff --git a/src/gluonts/evaluation/metrics.py b/src/gluonts/evaluation/metrics.py index 69bde27a0f..41a2c97bea 100644 --- a/src/gluonts/evaluation/metrics.py +++ b/src/gluonts/evaluation/metrics.py @@ -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(