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

[BUG] fix WeightedEnsembleClassifier._predict_proba to work with pandas based mtypes #4275

Merged
merged 1 commit into from Mar 11, 2023

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented Feb 27, 2023

This fixes an unreported bug where WeightedEnsembleClassifier._predict_proba would not work with pandas multiindex based mtypes. This is due to an array initialization that assumes X.shape[0] as axis 0 length for an array (number instances), which is not correct for the multiindex based mtype.

@fkiraly fkiraly added module:classification classification module: time series classification bugfix Fixes a known bug or removes unintended behavior labels Feb 27, 2023
@fkiraly fkiraly merged commit 8e8599c into main Mar 11, 2023
@fkiraly fkiraly deleted the weightedensemblelassifier-predproba branch March 11, 2023 18:53
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:classification classification module: time series classification
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant