-
Notifications
You must be signed in to change notification settings - Fork 777
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 dominick dataset bug. #2364
Conversation
Thanks for the PR! A bit of a nitpick, but the title should be in present tense and also has a |
Done :) |
@@ -238,7 +238,7 @@ def default_prediction_length_from_frequency(freq: str) -> int: | |||
"T": 60, | |||
"H": 48, | |||
"D": 30, | |||
"W": 8, | |||
"W-SUN": 8, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix doesn't specific to dominick
, but be an issue with the canonical name of the weekly frequency.
Otherwise looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I was trying to find out which other dataset it affects, but there aren't many dataset. I think it comes from a specific condition arising out of the Dominick dataset. I marked it as Dominick, because yesterday, I encountered issue because of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should W-SUN
be added along with W
, instead of replacing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. I think that would be better. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it should not. W-SUN is the canonical frequency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove W again
* Fix numerical bug in `BinnedUniforms` (#2344) prob.cumsum() - prob is a numerically unsafe way to shift prob.cumsum() to the right. The numerical error will create small gaps or overlaps in the bins defined by lower and upper bounds. If a quantile falls in one of these overlap or gap the one hot bin indicator will have 0 or 2 hot bins and generate a shape mismatch error. The fix consists of doing a shift by copy. * Fix dominick dataset bug. (#2364) * Proposed fix to zero seed bug. (#2379) Co-authored-by: Sigrid Passano Hellan <[email protected]> Co-authored-by: Marc van Oudheusden <[email protected]> Co-authored-by: Bhaskar Dhariyal <[email protected]> Co-authored-by: Sigrid Passano Hellan <[email protected]> Co-authored-by: Sigrid Passano Hellan <[email protected]>
* Fix dominick dataset bug. (#2364) * Remove strange quoting marks from docstrings (#2368) * Change 'confidence interval' to 'prediction interval' (#2373) * Proposed fix to zero seed bug. (#2379) Co-authored-by: Sigrid Passano Hellan <[email protected]> Co-authored-by: Bhaskar Dhariyal <[email protected]> Co-authored-by: Nils Kiele <[email protected]> Co-authored-by: Sigrid Passano Hellan <[email protected]> Co-authored-by: Sigrid Passano Hellan <[email protected]>
Fixes: #2355
Description of changes:
changed to "W" to "W-SUN"
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