Skip to content

Commit

Permalink
Add back skip MAPE test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasChia committed May 18, 2024
1 parent fb07236 commit c860bbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/prophet/tests/test_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit c860bbf

Please sign in to comment.