-
Notifications
You must be signed in to change notification settings - Fork 487
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
Avoidance of duplicate code in regularisation #1110
Avoidance of duplicate code in regularisation #1110
Conversation
…e code into a helper function
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #1110 +/- ##
==========================================
+ Coverage 90.17% 90.19% +0.02%
==========================================
Files 30 30
Lines 4966 4958 -8
==========================================
- Hits 4478 4472 -6
+ Misses 488 486 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
…licate code into a helper function
…ting duplicate code into a helper function" This reverts commit 5261ee00f0baeb44686064296f79b7755b52c809.
…avoid duplicate code
…e make_events_features to _create_event_offset_features
…e make_events_features to _create_event_offset_features
@LeonieFreisinger, thanks for you feedback! I included it in the lates commits. But I don't know why
|
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 for cleaning up that part of the code!! I have added only two more comments. The rest is good to go.
Model Benchmark
|
🔬 Background
As mentioned in issue #712, there is duplicate code regarding the event and holiday implementation.
🔮 Key changes
Two functions were edited to remove duplicate code:
def reg_func_events
inutils.py
) duplicate code was removed and put into a helper function.def make_events_features
intime_dataset.py
) duplicate code was removed and put into a helper function.📋 Review Checklist