Skip to content

Commit

Permalink
fix flat trend
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-nillion committed Jun 11, 2024
1 parent 5b73d51 commit 56add95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nada_ai/time_series/prophet.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def predict_trend(self, floor: na.NadaArray, t: na.NadaArray) -> na.NadaArray:
m_t = (-self.changepoints_t * deltas_t).sum(axis=1) + m
trend = k_t * t + m_t
elif self.growth == "flat":
trend = na.ones_like(t, na.rational) * m
trend = na.ones_like(t, na.Rational) * m
else:
raise NotImplementedError(self.growth + " is not supported")

Expand Down

0 comments on commit 56add95

Please sign in to comment.