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

Feature/scalar with window #2021

Closed
wants to merge 17 commits into from

Conversation

JanFidor
Copy link
Contributor

@JanFidor JanFidor commented Oct 6, 2023

Fixes #1540.

Summary

I've added the ability to use Scalar inside historical_forecasts to avoid information leakage.
As RegressionModel._optimized_historical_forecasts doesn't support model retraining, decided to not add scalar with window there. Please let me know if the implementation makes sense or if the code could be changed for the better!
P.S. Sorry for the PR being quite late, but the past 2 months have been quite hectic. I'll have significantly less time during this school year, than I originally planned, but I'll do my best to find an hour or 2 a week to respond to reviews and slowly but surely bring this and the others PRs to a merge

@JanFidor JanFidor requested a review from dennisbader as a code owner October 6, 2023 14:40
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2023

Codecov Report

Attention: Patch coverage is 64.58333% with 17 lines in your changes missing coverage. Please review.

Project coverage is 93.69%. Comparing base (26c5f39) to head (c13889f).

Files with missing lines Patch % Lines
darts/models/forecasting/forecasting_model.py 62.06% 11 Missing ⚠️
...casts/optimized_historical_forecasts_regression.py 66.66% 4 Missing ⚠️
..._forecasts/optimized_historical_forecasts_torch.py 60.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2021      +/-   ##
==========================================
- Coverage   93.79%   93.69%   -0.11%     
==========================================
  Files         139      139              
  Lines       14741    14771      +30     
==========================================
+ Hits        13827    13839      +12     
- Misses        914      932      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@dennisbader dennisbader left a comment

Choose a reason for hiding this comment

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

Very nice, thanks a lot @JanFidor for another great contribution!

Only had some minor suggestions, let me know what you think.

darts/models/forecasting/forecasting_model.py Outdated Show resolved Hide resolved
darts/models/forecasting/forecasting_model.py Outdated Show resolved Hide resolved
darts/models/forecasting/forecasting_model.py Outdated Show resolved Hide resolved
darts/models/forecasting/forecasting_model.py Outdated Show resolved Hide resolved
darts/models/forecasting/forecasting_model.py Outdated Show resolved Hide resolved
darts/models/forecasting/forecasting_model.py Outdated Show resolved Hide resolved
@ETTAN93
Copy link

ETTAN93 commented Dec 28, 2023

Hi, since my issue #2134 has been linked to this, can I just double check if there is a timeline to finish implementing the usage of scalers in historical forecast?

@JanFidor
Copy link
Contributor Author

JanFidor commented Jan 4, 2024

Hi @ETTAN93! I'll try to finish up the PR around end of January - early February. I'm terribly sorry for the delay, but unfortunately this university term was much harder than I hoped and I didn't have the free time to work on it.

@ETTAN93
Copy link

ETTAN93 commented Apr 25, 2024

Hi, can I just check when this feature is planned to be merged?

@JanFidor JanFidor requested a review from madtoinou as a code owner July 17, 2024 20:54
@JanFidor
Copy link
Contributor Author

JanFidor commented Jul 17, 2024

Hi everyone! The past year with the studies, work and the engineering Thesis I got a little burned out and OSS unfortunately fell on back burner for quite a bit. Fortunately with the term ending I got much less to keep on top of and with some vacation I'm once again back to doing some contributions. Sorry disappearing and thanks for all the reviews, I'll try to update / resolve all the comments!

@madtoinou
Copy link
Collaborator

Hi @JanFidor,

Since this feature is pretty high on the roadmap and expected by many users, in order to speed things up a bit, we decided to branch out of your work and opened #2529.

@madtoinou madtoinou closed this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Scaler with rolling/expanding window to eliminate look ahead bias
6 participants