From c860bbfcd7318d2ee5755d0a4e52d8b3f0fe67ed Mon Sep 17 00:00:00 2001 From: Thomas Chia Date: Sat, 18 May 2024 13:53:39 +0100 Subject: [PATCH] Add back skip MAPE test. --- python/prophet/tests/test_diagnostics.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/prophet/tests/test_diagnostics.py b/python/prophet/tests/test_diagnostics.py index bfd2648d8..6ad83e430 100644 --- a/python/prophet/tests/test_diagnostics.py +++ b/python/prophet/tests/test_diagnostics.py @@ -234,7 +234,9 @@ def test_performance_metrics(self, ts_short, backend): metrics=["coverage", "mse"], ) assert set(df_horizon.columns) == {"coverage", "mse", "horizon"} - # Handle zero y and yhat and skip MAPE + # Skip MAPE + df_cv.loc[0, "y"] = 0.0 + # Handle zero y and yhat df_cv["y"] = 0.0 df_cv["yhat"] = 0.0 df_horizon = diagnostics.performance_metrics(