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

class weight {0: 4.0, 1: 15.0, 2: 15.0, 3: 3.0, 4: 1.0, 5: 6.0, 6: 3.0}, it still is zero #37

Open
Aidenfaustine opened this issue Jul 11, 2021 · 1 comment

Comments

@Aidenfaustine
Copy link

Dear professor

i am really sorry to disturb you. I add the class_weight={0: 4.0, 1: 15.0, 2: 15.0, 3: 3.0, 4: 1.0, 5: 6.0, 6: 3.0}.
the prceision is zero

          precision    recall  f1-score   support

       0     0.4919    0.9889    0.6570      1256
       1     0.0000    0.0000    0.0000       281
       2     0.0000    0.0000    0.0000        50
       3     0.0000    0.0000    0.0000       208
       4     0.0000    0.0000    0.0000       402
       5     0.0000    0.0000    0.0000        68
       6     0.4353    0.1072    0.1721       345

micro avg 0.4900 0.4900 0.4900 2610
macro avg 0.1325 0.1566 0.1184 2610
weighted avg 0.2942 0.4900 0.3389 2610

Weighted FScore:
(0.2942449206381084, 0.4900383141762452, 0.3388985544501019, None)

How to fix it?
thanks, best wishes

@Triaill
Copy link

Triaill commented Oct 11, 2024

Dear professor

i am really sorry to disturb you. I add the class_weight={0: 4.0, 1: 15.0, 2: 15.0, 3: 3.0, 4: 1.0, 5: 6.0, 6: 3.0}. the prceision is zero

          precision    recall  f1-score   support

       0     0.4919    0.9889    0.6570      1256
       1     0.0000    0.0000    0.0000       281
       2     0.0000    0.0000    0.0000        50
       3     0.0000    0.0000    0.0000       208
       4     0.0000    0.0000    0.0000       402
       5     0.0000    0.0000    0.0000        68
       6     0.4353    0.1072    0.1721       345

micro avg 0.4900 0.4900 0.4900 2610 macro avg 0.1325 0.1566 0.1184 2610 weighted avg 0.2942 0.4900 0.3389 2610

Weighted FScore: (0.2942449206381084, 0.4900383141762452, 0.3388985544501019, None)

How to fix it? thanks, best wishes

I'm working on the same issue,could you tell me if you've resolved it?

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

No branches or pull requests

2 participants