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 _get_train_probs in some classifiers to accept any input data type #6377

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented May 2, 2024

This PR fixes #6376 by ensuring the _get_train_probs method - with undocumented contract - accepts X_train of any permissible panel input type.

The fix is adding an input converter to numpy3D, which all currently implemented instances seem to assume.

This approach should fix the failing test_classifier_output test for the new scenario, without removing functionality (even if private), or degrading efficiency in a case where the input is numpy already.

Depends on #6374 for testing.

@fkiraly fkiraly added module:classification classification module: time series classification bugfix Fixes a known bug or removes unintended behavior labels May 2, 2024
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.

[BUG] classifiers failing on multiclass scenario due to _get_train_probs
1 participant