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

Clean up gluonts.time_feature.holiday #2578

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

lostella
Copy link
Contributor

Issue #, if available:

Description of changes:

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 the BREAKING This is a breaking change (one of pr required labels) label Jan 23, 2023
NEW_YEARS_EVE: distance_to_holiday(NewYearsEve),
BLACK_FRIDAY: distance_to_holiday(BlackFriday),
CYBER_MONDAY: distance_to_holiday(CyberMonday),
"new_years_day": distance_to_holiday(NewYearsDay),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of them are referenced in the docstings below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove that class entirely, it's only used in tests and I don't see any way the user can use it with estimators.

Instead, holidays should probably work just like any other TimeFeature?

Copy link
Contributor

@kashif kashif Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so if they are time features we just need to make sure they are not called on the fly as these operations are slow and in theory are just needed once and then every time series in a dataset can use them...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point @kashif, some caching would help there I guess. In general I believe we should re-think how these features are specified to estimators, since now there seems to be too much going on.

@lostella lostella changed the title Remove key identifiers from gluonts.time_feature.holiday Clean up gluonts.time_feature.holiday Jan 23, 2023
@lostella lostella marked this pull request as draft January 23, 2023 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING This is a breaking change (one of pr required labels)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants