-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Seasonality check Flag #1199
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
Seasonality check Flag #1199
Conversation
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.
LGTM
except KeyError: | ||
raise ValueError( | ||
f"Unsupported Period frequency: {seasonal_parameter}, valid Period frequencies: {', '.join(SeasonalParameter.__members__.keys())}" | ||
) | ||
|
||
self.seasonal_parameter = seasonal_parameter |
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.
If seasonal parameter is a string, will the previous statement not be overwritten by this?
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 missing assigning this case when seasonal_parameter
is integer.
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.
Thanks @TremaMiguel , Can you add unit tests to test for these 2 cases (type of the argument)?
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.
you mean testing the exceptions raised seasonal_parameter parameter must be an int or str
and Unsupported Period 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.
Yes, that could be one of them. In addition, I was referring to specifically testing passing of int and str values and checking that the internal values are set correctly.
Describe the changes you've made
Check seasonal period in data through sktime's
autocorrelation_seasonality_test
function.Type of change
Please delete options that are not relevant.
How Has This Been Tested?
No tests need.
Describe if there is any unusual behaviour of your code(Write
NA
if there isn't)A clear and concise description of it.
Checklist: