Understanding SpanCat's confidence scores #11144
Answered
by
ljvmiranda921
nsrinidhibhat
asked this question in
Help: Model Advice
-
Hi,
I need to perform uncertainty sampling on the confidence scores received from the model and hence the query. Kindly help me out with this. Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
ljvmiranda921
Jul 21, 2022
Replies: 1 comment 7 replies
-
Hi @nsrinidhibhat ,
|
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
nsrinidhibhat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @nsrinidhibhat ,
scorer
currently uses the LinearLogistic layer. This means that it's treating each class independently, hence their confidences do not sum up to 1. This works in theory because we want spancat to work with overlapping entities. But if you have exclusive classes, you might need to change the scorer to Softmax.spancat
works as a multilabel classification problem, so no, it doesn't try to predict label(s) one by one. Instead, what happens is that you have an array of confidence scores (per label) and you try to obtain the argmax of that array. Right now, there's no concept of "no label" inspancat
. In addition, theLinearLogi…