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

Add multi-label Classification Support #minor #76

Merged
merged 94 commits into from
Jan 31, 2024

Conversation

agemcipe
Copy link
Collaborator

@agemcipe agemcipe commented Dec 19, 2022

The goal of this PR is to implement multi-label hierarchical classification thereby lifting the restriction that the target variable has to correspond to a single well-defined path from root to most specific class in the hierarchy. Instead, multiple paths can be specified and in turn, trained on and predicted. Closes #23

Additionally, this PR also fixes #75

agemcipe and others added 6 commits December 19, 2022 15:57
In the reference paper the exlusive policies make the selection of
positive or negative examples based on the notion of the
"most specific class" of instance, for example ["1", "1.1"] having
the most specific class "1.1". This was not respected before.
@codecov-commenter
Copy link

codecov-commenter commented Jan 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@8ec3e50). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #76   +/-   ##
=======================================
  Coverage        ?   96.86%           
=======================================
  Files           ?       11           
  Lines           ?     1086           
  Branches        ?        0           
=======================================
  Hits            ?     1052           
  Misses          ?       34           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mirand863 mirand863 marked this pull request as draft February 7, 2023 10:24
@mirand863
Copy link
Collaborator

For some reason the documentation build is failing with the last commits. @agemcipe can you please take a look? Here is the log and I can also give you access to read the docs if it makes things easier.
23132520.txt

docs/examples/plot_multilevel.py Outdated Show resolved Hide resolved
docs/examples/plot_multilevel.py Outdated Show resolved Hide resolved
docs/examples/plot_multilevel.py Outdated Show resolved Hide resolved
docs/examples/plot_multilevel.py Outdated Show resolved Hide resolved
docs/examples/plot_multilevel.py Outdated Show resolved Hide resolved
docs/examples/plot_multilevel.py Outdated Show resolved Hide resolved
docs/examples/plot_multilevel.py Outdated Show resolved Hide resolved
docs/source/algorithms/multi_label.rst Outdated Show resolved Hide resolved
docs/source/algorithms/multi_label.rst Outdated Show resolved Hide resolved
docs/source/algorithms/multi_label.rst Outdated Show resolved Hide resolved
@agemcipe agemcipe marked this pull request as ready for review January 23, 2024 08:57
@agemcipe agemcipe requested a review from mirand863 January 24, 2024 09:28
@mirand863 mirand863 merged commit 9d40db5 into scikit-learn-contrib:main Jan 31, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatibility with numpy 1.24 Feature request: Multi-label classification support
3 participants