Class ExpectedReciprocalRank

java.lang.Object
org.opensearch.index.rankeval.ExpectedReciprocalRank
All Implemented Interfaces:
NamedWriteable, Writeable, ToXContent, ToXContentObject, EvaluationMetric

public class ExpectedReciprocalRank
extends java.lang.Object
implements EvaluationMetric
Implementation of the Expected Reciprocal Rank metric described in:

Chapelle, O., Metlzer, D., Zhang, Y., & Grinspan, P. (2009).
Expected reciprocal rank for graded relevance.
Proceeding of the 18th ACM Conference on Information and Knowledge Management - CIKM ’09, 621.
https://doi.org/10.1145/1645953.1646033

  • Field Details

  • Constructor Details

    • ExpectedReciprocalRank

      public ExpectedReciprocalRank​(int maxRelevance)
      Parameters:
      maxRelevance - the highest expected relevance in the data
    • ExpectedReciprocalRank

      public ExpectedReciprocalRank​(int maxRelevance, @Nullable java.lang.Integer unknownDocRating, int k)
      Parameters:
      maxRelevance - the maximal relevance judgment in the evaluation dataset
      unknownDocRating - the rating for documents the user hasn't supplied an explicit rating for. Can be null, in which case document is skipped.
      k - the search window size all request use.
  • Method Details