Documentation of 'edu.uci.jforests.eval.ranking.TRiskAwareSAROEval' Java class
TRiskAwareSAROEval
edu.uci.jforests.eval.ranking

Class TRiskAwareSAROEval

  • Direct Known Subclasses:
    TRiskAwareFAROEval


    public class TRiskAwareSAROEval
    extends URiskAwareEval
    Implements the TRisk risk-sensitive optimisation metric called SARO, as defined by Dincer et al. See Taner Dincer, Craig Macdonald and Iadh Ounis, Hypothesis Testing for Risk-Sensitive Evaluation of Retrieval Systems, SIGIR 2014.

    Implementation Details

    It is assumed that the natural ordering of documents for each query defines the baseline.

    • Constructor Detail

      • TRiskAwareSAROEval

        public TRiskAwareSAROEval(EvaluationMetric _parent,
                                  double alpha)
    • Method Detail

      • getEstimates

        public static double[] getEstimates(double[] baselinePerQuery,
                                            double[] perQuery,
                                            double ALPHA)
        returns double[] params where params[0] = URisk; params[1] = PairedVar.
      • T_measure

        public static double T_measure(double[] baselinePerQuery,
                                       double[] perQuery,
                                       double ALPHA)
      • measure

        public double measure(double[] predictions,
                              Sample sample)
                       throws java.lang.Exception
        Overrides:
        measure in class URiskAwareEval
        Throws:
        java.lang.Exception
      • getSwapScorer

        public RankingEvaluationMetric.SwapScorer getSwapScorer(double[] targets,
                                                                int[] boundaries,
                                                                int trunc,
                                                                int[][] labelCounts)
                                                         throws java.lang.Exception
        Overrides:
        getSwapScorer in class URiskAwareEval
        Parameters:
        targets - Targets of all documents in dataset. Equals Dataset.*.length
        boundaries - Start and end indices of each query within the dataset.
        trunc - Truncation level for evaluation measure
        labelCounts - How many of each label value
        Throws:
        java.lang.Exception - if things go pear shaped

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.