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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dice metric cannot compute DICE score for each class #2282

Open
NguyenAnhTien opened this issue Dec 25, 2023 · 5 comments
Open

Dice metric cannot compute DICE score for each class #2282

NguyenAnhTien opened this issue Dec 25, 2023 · 5 comments
Labels
bug / fix Something isn't working help wanted Extra attention is needed v1.2.x

Comments

@NguyenAnhTien
Copy link

馃悰 Bug

The class DICE (in the dice.py), at the line 176, the condition

if average not in ["micro", "macro", "samples"]

doest not work with the documents. This condition does not allow 'none' (None) value for the class DICE. Therefore, this class cannot produce DICE for each class.

@NguyenAnhTien NguyenAnhTien added bug / fix Something isn't working help wanted Extra attention is needed labels Dec 25, 2023
Copy link

Hi! thanks for your contribution!, great first issue!

@Borda
Copy link
Member

Borda commented Dec 27, 2023

I guess you are referring to the master branch, right?
Pls add a link to the code; that would be easier... 馃Ι

@NguyenAnhTien
Copy link
Author

@Borda Borda added the v1.2.x label Dec 31, 2023
@ManuelZ
Copy link

ManuelZ commented Feb 19, 2024

I have the same problem, I can't get a per-class Dice score when providing an average argument of None:

if average not in ["micro", "macro", "samples"]:

@asbjrnmunk
Copy link

Duplicate issue: #1602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working help wanted Extra attention is needed v1.2.x
Projects
None yet
Development

No branches or pull requests

5 participants
@ManuelZ @Borda @asbjrnmunk @NguyenAnhTien and others