Show / Hide Table of Contents

    Class QualityStats

    Results of quality benchmark run for a single query or for a set of queries.

    Inheritance
    System.Object
    QualityStats
    Namespace: Lucene.Net.Benchmarks.Quality
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class QualityStats : object

    Constructors

    | Improve this Doc View Source

    QualityStats(Double, Int64)

    Construct a QualityStats object with anticipated maximal number of relevant hits.

    Declaration
    public QualityStats(double maxGoodPoints, long searchTime)
    Parameters
    Type Name Description
    System.Double maxGoodPoints

    maximal possible relevant hits.

    System.Int64 searchTime

    Fields

    | Improve this Doc View Source

    MAX_POINTS

    Number of points for which precision is computed.

    Declaration
    public static readonly int MAX_POINTS
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    DocNamesExtractTime

    Returns the time it took to extract doc names for judging the measured query, in milliseconds.

    Declaration
    public virtual long DocNamesExtractTime { get; }
    Property Value
    Type Description
    System.Int64
    | Improve this Doc View Source

    MaxGoodPoints

    Returns the maximal number of good points. This is the number of relevant docs known by the judge for the measured query.

    Declaration
    public virtual double MaxGoodPoints { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    MRR

    Returns the Mean reciprocal rank over the queries or RR for a single query.

    Declaration
    public virtual double MRR { get; }
    Property Value
    Type Description
    System.Double
    Remarks

    Reciprocal rank is defined as 1/r where r is the rank of the first correct result, or 0 if there are no correct results within the top 5 results.

    This follows the definition in Question Answering - CNLP at the TREC-10 Question Answering Track.

    | Improve this Doc View Source

    NumGoodPoints

    Returns the number of good points (only relevant points).

    Declaration
    public virtual double NumGoodPoints { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    NumPoints

    Returns the number of points (both relevant and irrelevant points).

    Declaration
    public virtual double NumPoints { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    Recall

    Return the recall: |{relevant hits found}| / |{relevant hits existing}|.

    Declaration
    public virtual double Recall { get; }
    Property Value
    Type Description
    System.Double
    | Improve this Doc View Source

    SearchTime

    Returns the search time in milliseconds for the measured query.

    Declaration
    public virtual long SearchTime { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    AddResult(Int32, Boolean, Int64)

    Add a (possibly relevant) doc.

    Declaration
    public virtual void AddResult(int n, bool isRelevant, long docNameExtractTime)
    Parameters
    Type Name Description
    System.Int32 n

    rank of the added doc (its ordinal position within the query results).

    System.Boolean isRelevant

    true if the added doc is relevant, false otherwise.

    System.Int64 docNameExtractTime
    | Improve this Doc View Source

    Average(QualityStats[])

    Create a QualityStats object that is the average of the input QualityStats objects.

    Declaration
    public static QualityStats Average(QualityStats[] stats)
    Parameters
    Type Name Description
    QualityStats[] stats

    array of input stats to be averaged.

    Returns
    Type Description
    QualityStats

    an average over the input stats.

    | Improve this Doc View Source

    GetAvp()

    Return the average precision at recall points.

    Declaration
    public virtual double GetAvp()
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    GetPrecisionAt(Int32)

    Return the precision at rank n: |{relevant hits within first n hits}| / n.

    Declaration
    public virtual double GetPrecisionAt(int n)
    Parameters
    Type Name Description
    System.Int32 n

    requested precision point, must be at least 1 and at most MAX_POINTS.

    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    GetRecallPoints()

    Returns the recallPoints.

    Declaration
    public virtual QualityStats.RecallPoint[] GetRecallPoints()
    Returns
    Type Description
    QualityStats.RecallPoint[]
    | Improve this Doc View Source

    Log(String, Int32, TextWriter, String)

    Log information on this QualityStats object.

    Declaration
    public virtual void Log(string title, int paddLines, TextWriter logger, string prefix)
    Parameters
    Type Name Description
    System.String title
    System.Int32 paddLines
    TextWriter logger

    Logger.

    System.String prefix

    prefix before each log line.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)