Scoring metrices for multiclass classification #50
Unanswered
ashwinshetgaonkar
asked this question in
Q&A
Replies: 1 comment
-
It would be like shown in the equation on page 201. Say you have 3 classes, it would compute 3 TP (true positive) scores:
Then, you do the same thing for the FP (false positives). Essentially, it works the same way as macro-averaging, but instead of having multiple precision scores that you average, you have multiple TP and the FP and compute the precision score from the combined individual scores. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
on page 201,
It is mentioned that to use micro average instead of the macro (default one) fol. code is written:
pre_scorer = make_scorer(score_func=precision_score,
pos_label=1,
greater_is_better=True,
average='micro')
how to use this in multiclass ? (pos_label=1 is fine for binary problems)
Beta Was this translation helpful? Give feedback.
All reactions