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

[refactor] Extract holiday getter helper to single function #1072

Merged
merged 10 commits into from
Jan 30, 2023

Conversation

noxan
Copy link
Collaborator

@noxan noxan commented Dec 14, 2022

🔬 Background

  • Repetitive code to get holidays

🔮 Key changes

  • Merged into a single function
  • Added some typing annotations

@noxan noxan force-pushed the refactor/extract-holiday-getter branch from c2450db to fbf54a5 Compare December 14, 2022 22:01
@github-actions
Copy link

github-actions bot commented Dec 14, 2022

0c9d751

Model Benchmark

Benchmark Metric main current diff
AirPassengers MAE_val 15.2698 15.2698 0.0%
AirPassengers RMSE_val 19.4209 19.4209 0.0%
AirPassengers Loss_val 0.00195 0.00195 0.0%
AirPassengers MAE 9.82902 9.82902 0.0%
AirPassengers RMSE 11.7005 11.7005 0.0%
AirPassengers Loss 0.00056 0.00056 0.0%
AirPassengers time 4.23059 4.38 3.53% ⚠️
PeytonManning MAE_val 0.64636 0.64636 0.0%
PeytonManning RMSE_val 0.79276 0.79276 0.0%
PeytonManning Loss_val 0.01494 0.01494 0.0%
PeytonManning MAE 0.42701 0.42701 0.0%
PeytonManning RMSE 0.57032 0.57032 0.0%
PeytonManning Loss 0.00635 0.00635 0.0%
PeytonManning time 11.6376 12.15 4.4% ⚠️
YosemiteTemps MAE_val 1.72949 1.72949 0.0%
YosemiteTemps RMSE_val 2.27386 2.27386 0.0%
YosemiteTemps Loss_val 0.00096 0.00096 0.0%
YosemiteTemps MAE 1.45189 1.45189 0.0%
YosemiteTemps RMSE 2.16631 2.16631 0.0%
YosemiteTemps Loss 0.00066 0.00066 0.0%
YosemiteTemps time 91.3679 99.55 8.96%
Model training plots

Model Training

PeytonManning

YosemiteTemps

AirPassengers

@codecov-commenter
Copy link

codecov-commenter commented Dec 14, 2022

Codecov Report

Merging #1072 (2947c91) into main (39a6a86) will increase coverage by 0.03%.
The diff coverage is 89.47%.

❗ Current head 2947c91 differs from pull request most recent head 20d1bdb. Consider uploading reports for the commit 20d1bdb to get more accurate results

📣 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    #1072      +/-   ##
==========================================
+ Coverage   90.34%   90.37%   +0.03%     
==========================================
  Files          21       22       +1     
  Lines        4857     4854       -3     
==========================================
- Hits         4388     4387       -1     
+ Misses        469      467       -2     
Impacted Files Coverage Δ
neuralprophet/hdays_utils.py 83.33% <83.33%> (ø)
neuralprophet/time_dataset.py 95.27% <100.00%> (+0.57%) ⬆️
neuralprophet/utils.py 81.48% <100.00%> (+0.21%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@noxan noxan added the status: needs review PR needs to be reviewed by Reviewer(s) label Dec 14, 2022
@noxan noxan self-assigned this Dec 15, 2022
@karl-richter
Copy link
Collaborator

@noxan what is the status of this PR? It is ready for review?

Copy link
Collaborator

@karl-richter karl-richter left a comment

Choose a reason for hiding this comment

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

LGTM

@karl-richter karl-richter added status: ready PR is ready to be merged and removed status: needs review PR needs to be reviewed by Reviewer(s) labels Jan 30, 2023
@github-actions
Copy link

github-actions bot commented Jan 30, 2023

Model Benchmark

Benchmark Metric main current diff
PeytonManning MAE_val 0.64636 0.64636 0.0%
PeytonManning RMSE_val 0.79276 0.79276 0.0%
PeytonManning Loss_val 0.01494 0.01494 0.0%
PeytonManning MAE 0.42701 0.42701 0.0%
PeytonManning RMSE 0.57032 0.57032 0.0%
PeytonManning Loss 0.00635 0.00635 0.0%
PeytonManning time 14.8782 11.42 -23.24% 🎉
YosemiteTemps MAE_val 1.72948 1.72949 0.0%
YosemiteTemps RMSE_val 2.27386 2.27386 0.0%
YosemiteTemps Loss_val 0.00096 0.00096 0.0%
YosemiteTemps MAE 1.45189 1.45189 0.0%
YosemiteTemps RMSE 2.16631 2.16631 0.0%
YosemiteTemps Loss 0.00066 0.00066 0.0%
YosemiteTemps time 114.287 91.49 -19.95% 🎉
AirPassengers MAE_val 15.2698 15.2698 0.0%
AirPassengers RMSE_val 19.4209 19.4209 0.0%
AirPassengers Loss_val 0.00195 0.00195 0.0%
AirPassengers MAE 9.82902 9.82902 0.0%
AirPassengers RMSE 11.7005 11.7005 0.0%
AirPassengers Loss 0.00056 0.00056 0.0%
AirPassengers time 5.14935 4.08 -20.77% 🎉
Model training plots

Model Training

PeytonManning

YosemiteTemps

AirPassengers

@karl-richter karl-richter merged commit fad0367 into main Jan 30, 2023
@karl-richter karl-richter deleted the refactor/extract-holiday-getter branch January 30, 2023 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready PR is ready to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants