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

Fix/hfc opti reg prob #2588

Merged
merged 8 commits into from
Nov 11, 2024
Merged

Fix/hfc opti reg prob #2588

merged 8 commits into from
Nov 11, 2024

Conversation

madtoinou
Copy link
Collaborator

@madtoinou madtoinou commented Nov 8, 2024

Checklist before merging this PR:

  • Mentioned all issues that this PR fixes or addresses.
  • Summarized the updates of this PR under Summary.
  • Added an entry under Unreleased in the Changelog.

Fixes #2461.

Summary

Thanks to #2534, the reshaping of the features logic was fixed. This PR just makes sure an exception is raised when trying to use num_samples > 1 with a deterministic regression model and the optimized historical forecasts (which does not call the ForecastingModel.predict() method, where some sanity checks are implemented).

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.

Thanks @madtoinou, looks good to me. Just a minor suggestion

darts/tests/models/forecasting/test_regression_models.py Outdated Show resolved Hide resolved
Copy link

codecov bot commented Nov 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.09%. Comparing base (18e2e3f) to head (0c6ae68).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2588      +/-   ##
==========================================
- Coverage   94.14%   94.09%   -0.06%     
==========================================
  Files         139      139              
  Lines       14882    14884       +2     
==========================================
- Hits        14011    14005       -6     
- Misses        871      879       +8     

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

@madtoinou madtoinou merged commit d909589 into master Nov 11, 2024
9 checks passed
@madtoinou madtoinou deleted the fix/hfc_opti_reg_prob branch November 11, 2024 10:47
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.

How are samples generated with RegressionModel / MLPRegressor?
2 participants