Spaces:
Runtime error
Runtime error
Download utils.py from filipeclduarte/forecasting: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/spaces/filipeclduarte/forecasting/resolve/4034a36d029e54bc978c06ffa5be00a6fbf5ef91/utils.py
- Command line
-
hf download hf://spaces/filipeclduarte/forecasting@4034a36d029e54bc978c06ffa5be00a6fbf5ef91/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/filipeclduarte/forecasting/resolve/4034a36d029e54bc978c06ffa5be00a6fbf5ef91/utils.py
277 Bytes
| def calc_seasonality(freq): | |
| if freq == 'Y': | |
| return 10 | |
| elif freq == 'Q': | |
| return 4 | |
| elif freq == 'M': | |
| return 12 | |
| elif freq == 'W': | |
| return 4 | |
| elif freq == 'D': | |
| return 7 | |
| else: | |
| return "You didn't choose the correct frequency. Use: Y, Q, M, W and D" |