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 freq string issues in datasets #3232

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

lostella
Copy link
Contributor

@lostella lostella commented Nov 4, 2024

Issue #, if available: fixes #3229, pandas changes in frequency strings broke some of our logic.

Description of changes: Add missing frequency strings in _tsf_datasets.py, and get rid of other frequency-related warnings with other datasets. I tested the change by running the following script:

from gluonts.dataset.repository import get_dataset, dataset_names

skip = [
    "m3_monthly",
    "m3_yearly",
    "m3_quarterly",
    "m3_other",
    "m5",
]

for dataset_name in dataset_names:
    if dataset_name in skip:
        continue
    print(dataset_name)
    dataset = get_dataset(dataset_name, regenerate=True)

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

@lostella lostella added bug fix (one of pr required labels) pending v0.15.x backport This contains a fix to be backported to the v0.15.x branch pending v0.16.x backport This contains a fix to be backported to the v0.16.x branch labels Nov 4, 2024
@lostella lostella requested a review from shchur November 4, 2024 23:21
@lostella lostella requested review from abdulfatir and removed request for shchur November 5, 2024 11:01
@lostella lostella merged commit 7c7ed7b into awslabs:dev Nov 5, 2024
18 checks passed
@lostella lostella deleted the fix-datasets-freqs branch November 5, 2024 12:25
lostella added a commit to lostella/gluonts that referenced this pull request Nov 7, 2024
*Issue #, if available:* fixes awslabs#3229, pandas changes in frequency
strings broke some of our logic.

*Description of changes:* Add missing frequency strings in
_tsf_datasets.py, and get rid of other frequency-related warnings with
other datasets. I tested the change by running the following script:

```python
from gluonts.dataset.repository import get_dataset, dataset_names

skip = [
    "m3_monthly",
    "m3_yearly",
    "m3_quarterly",
    "m3_other",
    "m5",
]

for dataset_name in dataset_names:
    if dataset_name in skip:
        continue
    print(dataset_name)
    dataset = get_dataset(dataset_name, regenerate=True)
```


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
@lostella lostella mentioned this pull request Nov 7, 2024
lostella added a commit that referenced this pull request Nov 7, 2024
*Description of changes:* Backporting PRs
- #3228 
- #3232 
- #3233 


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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix (one of pr required labels) pending v0.15.x backport This contains a fix to be backported to the v0.15.x branch pending v0.16.x backport This contains a fix to be backported to the v0.16.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to get several datasets
2 participants