Package edu.uci.jforestsx.util

Examples of edu.uci.jforestsx.util.ScoreBasedComparator


    private double[] result;
    private ScoreBasedComparator comparator;

    public NDCGWorker() {
      permutation = new int[maxDocsPerQuery];
      comparator = new ScoreBasedComparator();
      result = new double[MAX_TRUNCATION_LEVEL];
    }
View Full Code Here


    private double result;
    private ScoreBasedComparator comparator;

    public MAPWorker() {
      permutation = new int[maxDocsPerQuery];
      comparator = new ScoreBasedComparator();     
    }
View Full Code Here

*/

public class RankGenerator {

  public static int[] getInstanceRanks(double[] scores, RankingSample sample) {
    ScoreBasedComparator comparator = new ScoreBasedComparator();
    comparator.labels = sample.targets;
    comparator.scores = scores;

    int[] ranks = new int[sample.size];
    int[] permutation = new int[((RankingDataset)sample.dataset).maxDocsPerQuery];
View Full Code Here

    return ranks;
  }

  public static int[] getRanks(double[] scores, RankingSample sample) {
    ScoreBasedComparator comparator = new ScoreBasedComparator();
    comparator.labels = sample.targets;
    comparator.scores = scores;

    int[] ranks = new int[sample.size];
    int[] permutation = new int[((RankingDataset)sample.dataset).maxDocsPerQuery];
View Full Code Here

    private double[] result;
    private ScoreBasedComparator comparator;

    public PrecisionWorker() {
      permutation = new int[maxDocsPerQuery];
      comparator = new ScoreBasedComparator();
      result = new double[maxLevels];
    }
View Full Code Here

    private ScoreBasedComparator comparator;

    public LambdaWorker(int maxDocsPerQuery) {
      permutation = new int[maxDocsPerQuery];
      labels = new int[maxDocsPerQuery];
      comparator = new ScoreBasedComparator();
    }
View Full Code Here

TOP

Related Classes of edu.uci.jforestsx.util.ScoreBasedComparator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.