in src/entrypoint/gluonts_example/util.py [0:0]
def freq_name(s):
"""Convert frequency string to friendly name.
This implementation uses only frequency string, hence 7D still becomes daily. It's not smart enough yet to know
that 7D equals to week.
"""
offset = to_offset(s)
if isinstance(offset, offsets.Day):
return "daily"
elif isinstance(offset, offsets.Week):
return "weekly"
raise ValueError(f"Unsupported frequency: {s}")