-
Notifications
You must be signed in to change notification settings - Fork 1.8k
improved defaults and improved flow demonstration #1242
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
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.
Just small nitpicks
# TODO: Check if there is a formal test for type of seasonality | ||
args = {"sp": sp, "seasonal": "mul"} if seasonality_present else {} | ||
# Add irrespective of whether seasonality is present or not | ||
args.update({"trend": "add"}) |
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.
We can just do args["trend"] = "add"
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.
Is this faster than update?
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 - though of course here it would not make any difference. Update has you create a new dictionary, which is extra overhead
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.
Ok, I have updated it now.
tune_distributions = {} | ||
if seasonality_present: | ||
tune_grid = { | ||
"error": ["add", "mul"], |
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.
can we have the common part outside? btw. you can merge two dicts with dict_merge = {**dict_a, **dict_b}
- the second dict will overwrite the first one in case of same keys
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.
@Yard1, @TremaMiguel also recommended to have class methods to get the tune_grid and tune_distributions. I think we can combine it with that improvement.
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.
Plus I prefer it to be explicit so it is easier to read :). Let's discuss in the next meeting.
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.
Sure thing, breaking it up is a good idea. We can leave it like that for now then
Related Issuse or bug
Fixes:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Unit test pass
Checklist: