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] fix Empirical index to be pd.MultiIndex for hierarchical data index #6341

Merged
merged 1 commit into from Apr 26, 2024

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Apr 26, 2024

The Empirical distribution would produce pd.Index of tuples instead of pd.MultiIndex in some methods, causing failures in #6052.

This PR fixes that.

In light of the current refactor in skpro which will see the Empirical reworked, I think it is sufficient to test indirectly via #6052 for onw.

@fkiraly fkiraly added bugfix Fixes a known bug or removes unintended behavior module:probability&simulation probability distributions and simulators labels Apr 26, 2024
@fkiraly fkiraly changed the title [ENH] fix Empirical index to be pd.MultiIndex for hierarchical index [ENH] fix Empirical index to be pd.MultiIndex for hierarchical data index Apr 26, 2024
fkiraly added a commit to sktime/skpro that referenced this pull request Apr 26, 2024
…ta index (#286)

The `Empirical` distribution would produce `pd.Index` of tuples instead
of `pd.MultiIndex` in some methods, causing failures in
sktime/sktime#6052.

This PR fixes that - mirror of
sktime/sktime#6341
@fkiraly fkiraly merged commit bd78550 into main Apr 26, 2024
39 of 53 checks passed
@fkiraly fkiraly deleted the fix-empirical-hier branch April 26, 2024 17:14
fkiraly added a commit that referenced this pull request Apr 26, 2024
…us, hierarchical data (#6052)

This PR extends `BaggingForecaster` (the main consumer of bootstrap
transformers) to support:

* exogeneous data
* multivariate data
* hierarchical and panel data
* full probabilistic prediction (empirical)

Closes #6042, fixes #6340

Depends on:

* #6066 for the probabilistic mode
* #6341 for the probabilistic mode
* #6067 for `predict_var`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a known bug or removes unintended behavior module:probability&simulation probability distributions and simulators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant