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

[ENH] refactor index generation in reducers to use ForecastingHorizon method #5539

Merged
merged 12 commits into from Nov 14, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Nov 6, 2023

This PR refactors index generation in reducers to use the ForecastingHorizon method instead of custom functionality.

Also useful as a test for the former logic.

Depends on #5543 due to an incorrect test.

@fkiraly fkiraly added module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting enhancement Adding new functionality labels Nov 6, 2023
fkiraly added a commit that referenced this pull request Nov 14, 2023
This PR fixes a faulty check for reduction forecasters' output, the
current test checks against the wrong expectation.

As the test with the wrong expectation currently passes, this PR will
cause it to fail.

The change in
#5539
should make it pass again.

The current state incorrectly expects `none` where the level name should
e `"Period"`, in two places.

To keep coverage either way, one of the expcetation iss changed to the
latter expectation `"Period"`, whereas in the other occurrence the data
is changed to make the current expectation `none` correct.
@fkiraly fkiraly merged commit f9769c5 into main Nov 14, 2023
39 checks passed
@fkiraly fkiraly deleted the reduce-_create_fcst_df branch November 14, 2023 20:38
fkiraly added a commit that referenced this pull request Jan 14, 2024
…on`, direct reduction (#5536)

The aim of this PR is to extend `make_reduction` classes to support
regressors with probabilistic prediction modes, with the `skpro`
interface.

This would be achieved exactly as currently in `YfromX` which already
does support probabilistic regressors, but unfortunately the inner
structure of `make_reduction` is much more nested and organically grown.

The idea is to switch over `predict` and `predict_interval` internally,
and leave the rest as-is.

Hopefully, this will also not interact with the fixes to the reducers
that @benHeid is currently working on.

Depends on #5539, #5725, #5726, which should be merged first.

Also fixes an unreported bug where the reducers could fail in a case
where not all index levels were named, as said names were used as
reference (in `_cut_df`). This has been remedied by using integer
references.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant