Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix various issues with holtWinters* functions #781

Merged
merged 5 commits into from
Jul 11, 2023

Conversation

carrieedwards
Copy link
Collaborator

This PR implements fixes for various issues that were found in the holtWinters* functions. These fixes include:

  • Adding parsing of the optional seasonality parameter, and using the specified value for calculations, rather than always using the default value of 1d.
  • Fix the fetching and processing of data in holtWintersAberration. Previously, only the data fetched with the altered start time was used, which was not consistent with Graphite-web. This function requires access to both the series fetched with the original from/until values, as well as data fetched with the adjusted start time. This is because this function compares values in the series corresponding to the original from/until values with those produced by the call to holtWintersConfidenceBands, which requires the series corresponding to the adjusted start time. (See the holtWintersAberration function documentation and the implementation in Graphite-web for details.)
  • Adds testing for holtWintersAberration and holtWintersForecast, and expands testing for holtWintersConfidenceBands and holtWintersConfidenceArea.

See #780 for more details on the issues behind these fixes.

* Parse and use seasonality argument in holtWinters* functions

* Fix holtWintersAberration fetching and processing of data

* Add tests for holtWintersAberration

* Update Metrics() function to add additional requests with adjusted start time for holtWintersAberration

* Add test for parser Metrics() function handling of start time adjustment

* Fix logic for fetching data with adjusted interval

* Add test to verify only initially fetched metrics are considered after fetching with different start time
* Parse and use seasonality argument in holtWinters* functions

* Add tests including seasonality and bootstrapInterval

* Add test for Metrics() handling of adjusting start time
@carrieedwards carrieedwards linked an issue Jul 10, 2023 that may be closed by this pull request
@carrieedwards carrieedwards added this pull request to the merge queue Jul 11, 2023
Merged via the queue into main with commit 3713428 Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix various issues with holtWinters* functions
2 participants