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

Class PrecisionEval

    • Constructor Detail

      • PrecisionEval

        public PrecisionEval(int maxDocsPerQuery,
                             int maxLevels,
                             double relevancyThreshold)
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getPrecisions

        public double[] getPrecisions(double[] predictions,
                                      Sample sample,
                                      ScoreBasedComparator.TieBreaker tieBreaker)
                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • measure

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

        public RankingEvaluationMetric.SwapScorer getSwapScorer(double[] targets,
                                                                int[] boundaries,
                                                                int trunc,
                                                                int[][] labelCounts)
                                                         throws java.lang.Exception
        Specified by:
        getSwapScorer in class RankingEvaluationMetric
        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.