Skip to content

Commit

Permalink
Fixed issue with yearly seasonality being enabled without enough data -
Browse files Browse the repository at this point in the history
fixes #20
  • Loading branch information
ankane committed May 6, 2024
1 parent 8116a41 commit 6f613f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 0.5.1 (unreleased)

- Added `scaling` option
- Fixed issue with yearly seasonality

## 0.5.0 (2023-09-05)

Expand Down
2 changes: 1 addition & 1 deletion lib/prophet/forecaster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def set_auto_seasonalities
days = 86400

# Yearly seasonality
yearly_disable = last - first < 370 * days
yearly_disable = last - first < 730 * days
fourier_order = parse_seasonality_args("yearly", @yearly_seasonality, yearly_disable, 10)
if fourier_order > 0
@seasonalities["yearly"] = {
Expand Down

0 comments on commit 6f613f0

Please sign in to comment.