-
-
Notifications
You must be signed in to change notification settings - Fork 26.1k
Fix ClassifierChain error message for multiclass-multioutput targets #31797
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
base: main
Are you sure you want to change the base?
Conversation
- Add validation in ClassifierChain.fit() to detect multiclass-multioutput targets - Raise clear ValueError explaining that ClassifierChain is for multilabel classification - Suggest using MultiOutputClassifier as alternative - Add comprehensive tests for both error case and normal multilabel operation Fixes scikit-learn#13339
❌ Linting issuesThis PR is introducing linting issues. Here's a summary of the issues. Note that you can avoid having linting issues by enabling You can see the details of the linting issues under the
|
Thanks for creating the PR. It looks like you used some tooling to create it, not a bad thing by itself. However standard clean up comments apply, please clean up the diff a bit (e.g. comments that just restate what is happening on the next line), shorten the exception message and reformat your top PR comment to use the template. In particular explain why you made the changes you made (it is easy to see what you changed, it is less easy to see why you think these are the right changes to make or what tradeoffs you considered) |
Fixes #13339
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Any other comments?