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 ProximityForest, tree, stump, and IndividualBOSS returning y of different type in predict #6432

Merged
merged 3 commits into from
May 22, 2024

Conversation

fkiraly
Copy link
Collaborator

@fkiraly fkiraly commented May 16, 2024

Towards #6431.

Fixes ProximityForest, tree, stump, and IndividualBOSS returning y of different type in predict.

The IndividualBOSS was coercing to object which was turned of.

The proximity classifiers had _predict being copy-paste of the default _predict which was fixed in #6430. The fix is deduplication, so the _predict defaults to the fixed parent classes' predict.

Tested via #6428

@fkiraly fkiraly added module:classification classification module: time series classification bugfix Fixes a known bug or removes unintended behavior labels May 16, 2024
@fkiraly fkiraly linked an issue May 16, 2024 that may be closed by this pull request
3 tasks
@fkiraly fkiraly merged commit 0af0772 into main May 22, 2024
54 checks passed
@fkiraly fkiraly deleted the classif-obj-dtype branch May 22, 2024 23:54
fkiraly added a commit that referenced this pull request May 22, 2024
…e type and labels (#6428)

This PR extends the suite test `test_classifier_on_unit_test_data` to
test that `y` of object or str dtype `y` leads to correct labels on
`predict` outputs.

Covers second bug in #6427,
namely the example returning integer labels instead of string labels -
but does not fix the bug.

It is hence expected that the test will detect bug #6427.

Depends on the following PR which fix newly covered bugs:

* #6430
* #6432
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] fix classifiers erroneously failing on non-int typed y
1 participant