You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2017/12/01 14:58:00 UTC

[jira] [Commented] (LUCENE-8072) Improve accuracy of similarity scores

    [ https://issues.apache.org/jira/browse/LUCENE-8072?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16274486#comment-16274486 ] 

Robert Muir commented on LUCENE-8072:
-------------------------------------

There is a cost to log1p, I'm not sure we should do this per-hit.

> Improve accuracy of similarity scores
> -------------------------------------
>
>                 Key: LUCENE-8072
>                 URL: https://issues.apache.org/jira/browse/LUCENE-8072
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-8072.patch
>
>
> I noticed two things we could do to improve the accuracy of our scores:
>  - use {{Math.log1p(x)}} instead of {{Math.log(1+x)}}, especially when x is expected to be small
>  - use doubles for intermediate values that are used to compute norms in BM25Similarity



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org