crowd-kit
crowd-kit copied to clipboard
Binary Relevance aggregation
Description
I have added code for Binary Relevance aggregation - simple method for multi-label classification. This approach treats each label as a class in binary classification task and aggregates it separately.
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation and examples improvement (changes affected documentation and/or examples)
Checklist:
- [x] I have read the CONTRIBUTING document.
- [x] I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I have added tests to cover my changes.
- [x] All new and existing tests passed.
Codecov Report
Base: 92.83% // Head: 93.02% // Increases project coverage by +0.19%
:tada:
Coverage data is based on head (
c61d608
) compared to base (f713930
). Patch coverage: 100.00% of modified lines in pull request are covered.
Additional details and impacted files
@@ Coverage Diff @@
## main #36 +/- ##
==========================================
+ Coverage 92.83% 93.02% +0.19%
==========================================
Files 40 43 +3
Lines 1815 1908 +93
==========================================
+ Hits 1685 1775 +90
- Misses 130 133 +3
Impacted Files | Coverage Δ | |
---|---|---|
crowdkit/aggregation/__init__.py | 94.11% <ø> (+0.36%) |
:arrow_up: |
crowdkit/aggregation/classification/__init__.py | 100.00% <ø> (ø) |
|
crowdkit/aggregation/multilabel/__init__.py | 100.00% <100.00%> (ø) |
|
...rowdkit/aggregation/multilabel/binary_relevance.py | 100.00% <100.00%> (ø) |
|
crowdkit/aggregation/utils.py | 86.20% <100.00%> (+1.79%) |
:arrow_up: |
crowdkit/aggregation/classification/kos.py | 92.50% <0.00%> (ø) |
|
crowdkit/aggregation/classification/dawid_skene.py | 95.52% <0.00%> (+0.03%) |
:arrow_up: |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
There are failed tests, which are fixed in main branch