awslabs / gluonts

Probabilistic time series modeling in Python
https://ts.gluon.ai
Apache License 2.0
4.64k stars 755 forks source link

Add Seasonal Aggregate Predictor #3162

Closed rshyamsundar closed 7 months ago

rshyamsundar commented 7 months ago

Issue #, if available:

Description of changes: Another simple model whose prediction is an aggregate of past values according to the seasonality. The number of seasons as well as the aggregate function can be provided. The special case num_seasons = 1 corresponds to the SeasonalNaive predictor.

Added several test cases for different aggregate functions including the following edge cases:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup