gluonts.time_feature.seasonality module

gluonts.time_feature.seasonality.get_seasonality(freq: str, seasonalities={'B': 5, 'D': 1, 'H': 24, 'M': 12, 'Q': 4, 'T': 1440, 'W': 1}) → int[source]

Return the seasonality of a given frequency:

>>> get_seasonality("2H")
12