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

Feat/fit predict encodings #1925

Merged
merged 6 commits into from Jul 31, 2023
Merged

Feat/fit predict encodings #1925

merged 6 commits into from Jul 31, 2023

Conversation

dennisbader
Copy link
Collaborator

Summary

  • adds encode_train_inference() to encoders. This allows to directly generate the encodings for training and prediction
  • adds generate_fit_predict_encodings() to ForecastingModel. Encodings can now be generated from the the model for training and prediction together.

@codecov-commenter
Copy link

codecov-commenter commented Jul 30, 2023

Codecov Report

Patch coverage: 89.13% and project coverage change: -0.03% ⚠️

Comparison is base (d30f163) 93.84% compared to head (ac85b5f) 93.81%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1925      +/-   ##
==========================================
- Coverage   93.84%   93.81%   -0.03%     
==========================================
  Files         126      126              
  Lines       12174    12200      +26     
==========================================
+ Hits        11425    11446      +21     
- Misses        749      754       +5     
Files Changed Coverage Δ
darts/dataprocessing/encoders/encoder_base.py 94.67% <87.87%> (-0.98%) ⬇️
darts/dataprocessing/encoders/encoders.py 97.58% <88.88%> (-0.29%) ⬇️
darts/models/forecasting/forecasting_model.py 95.13% <100.00%> (-0.01%) ⬇️

... and 6 files with indirect coverage changes

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

Copy link
Collaborator

@madtoinou madtoinou left a comment

Choose a reason for hiding this comment

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

Cool addition, I really like the fact that a different terminology is used for encoders compare to models (train/inference versus fit/predict), makes things easier to understand.

Spotted some typos in the tests

dennisbader and others added 2 commits July 31, 2023 12:46
Co-authored-by: madtoinou <32447896+madtoinou@users.noreply.github.com>
@dennisbader dennisbader merged commit 3376f27 into master Jul 31, 2023
9 checks passed
@dennisbader dennisbader deleted the feat/fit_predict_encodings branch July 31, 2023 10:51
@dennisbader dennisbader restored the feat/fit_predict_encodings branch July 31, 2023 11:22
@dennisbader dennisbader deleted the feat/fit_predict_encodings branch July 31, 2023 12:02
dennisbader added a commit that referenced this pull request Aug 4, 2023
* added encode_train_inference to encoders

* added generate_fit_predict_encodings to ForecastingModel

* simplify TransferrableFut..Model.generatice_predict_encodings

* update changelog

* Apply suggestions from code review

Co-authored-by: madtoinou <32447896+madtoinou@users.noreply.github.com>

* apply suggestions from PR review part 2

---------

Co-authored-by: madtoinou <32447896+madtoinou@users.noreply.github.com>
dennisbader added a commit that referenced this pull request Aug 4, 2023
* udpate dtw example and add dtw to rendered documentation

* make all windows inherit from Window

* clean up windows

* improve dtw documentation

* improved forecasting model module documentation

* update models and add model links in covariates user guide

* add model links to README

* update changelog

* fix typo in dtw example notebook

* remove outdated lines from tide model from before probabilistic support

* apply suggestions from PR review

* update readme model table

* Feat/fit predict encodings (#1925)

* added encode_train_inference to encoders

* added generate_fit_predict_encodings to ForecastingModel

* simplify TransferrableFut..Model.generatice_predict_encodings

* update changelog

* Apply suggestions from code review

Co-authored-by: madtoinou <32447896+madtoinou@users.noreply.github.com>

* apply suggestions from PR review part 2

---------

Co-authored-by: madtoinou <32447896+madtoinou@users.noreply.github.com>

* update readme

* apply suggestions from code review and improve README.md

* Update README.md

Co-authored-by: madtoinou <32447896+madtoinou@users.noreply.github.com>

---------

Co-authored-by: madtoinou <32447896+madtoinou@users.noreply.github.com>
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.

None yet

3 participants