# Setting the no\_answer probability in the squad\_v2 metric

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsetting-the-no-answer-probability-in-the-squad-v2-metric%2F14962%3E%5C
**Category:** Intermediate\
**Created:** [February 21, 2022, 8:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsetting-the-no-answer-probability-in-the-squad-v2-metric%2F14962 "2022-02-21T08:42:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RajSang](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@RajSang](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRajSang)%5C
**Post date:** [February 21, 2022, 8:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsetting-the-no-answer-probability-in-the-squad-v2-metric%2F14962%2F1 "2022-02-21T08:42:20Z")

</div>

Hi, I just wanted to clarify whether the no\_answer\_probability that we need to pass to the squad\_2 metric (in the predictions dictionary) should be equal to only the sum of start and end logits for the CLS token (i.e start\_logit[0]+end\_logit[0]) or should it be the difference start\_logit[0]+end\_logit[0]-best\_start\_logit-best\_end\_logit. Here start/end\_logit[0] refer to the scores of the CLS token.

Thanks
