public MetricScorerFactory() { map.put("MAP", new APScorer()); map.put("NDCG", new NDCGScorer()); map.put("DCG", new DCGScorer()); map.put("P", new PrecisionScorer()); map.put("RR", new ReciprocalRankScorer()); map.put("BEST", new BestAtKScorer()); map.put("ERR", new ERRScorer()); }
public Evaluator(final RankerType rType, final METRIC trainMetric, final int trainK, final METRIC testMetric, final int testK) { this.type = rType; trainScorer = mFact.createScorer(trainMetric, trainK); testScorer = mFact.createScorer(testMetric, testK); if (!qrelFile.isEmpty()) { trainScorer.loadExternalRelevanceJudgment(qrelFile); testScorer.loadExternalRelevanceJudgment(qrelFile); } }
public MetricScorer copy() { return new ReciprocalRankScorer(); } public String name()
public MetricScorer copy() { return new APScorer(); } public void loadExternalRelevanceJudgment(String qrelFile)
public MetricScorer copy() { return new DCGScorer(); } /**
public ERRScorer copy() { return new ERRScorer(); } /**
public MetricScorer copy() { return new PrecisionScorer(); } public String name()
public MetricScorerFactory() { map.put("MAP", new APScorer()); map.put("NDCG", new NDCGScorer()); map.put("DCG", new DCGScorer()); map.put("P", new PrecisionScorer()); map.put("RR", new ReciprocalRankScorer()); map.put("BEST", new BestAtKScorer()); map.put("ERR", new ERRScorer()); } public MetricScorer createScorer(METRIC metric)
public Evaluator(final RankerType rType, final String trainMetric, final String testMetric) { this.type = rType; trainScorer = mFact.createScorer(trainMetric); testScorer = mFact.createScorer(testMetric); if (!qrelFile.isEmpty()) { trainScorer.loadExternalRelevanceJudgment(qrelFile); testScorer.loadExternalRelevanceJudgment(qrelFile); } }
public Evaluator(final RankerType rType, final METRIC trainMetric, final METRIC testMetric) { this.type = rType; trainScorer = mFact.createScorer(trainMetric); testScorer = mFact.createScorer(testMetric); if (!qrelFile.isEmpty()) { trainScorer.loadExternalRelevanceJudgment(qrelFile); testScorer.loadExternalRelevanceJudgment(qrelFile); } }
public Evaluator(final RankerType rType, final METRIC trainMetric, final METRIC testMetric, final int k) { this.type = rType; trainScorer = mFact.createScorer(trainMetric, k); testScorer = mFact.createScorer(testMetric, k); if (!qrelFile.isEmpty()) { trainScorer.loadExternalRelevanceJudgment(qrelFile); testScorer.loadExternalRelevanceJudgment(qrelFile); } }
public Evaluator(RANKER_TYPE rType, METRIC trainMetric, METRIC testMetric, int k) { this.type = rType; trainScorer = mFact.createScorer(trainMetric, k); testScorer = mFact.createScorer(testMetric, k); if(qrelFile.compareTo("") != 0) { trainScorer.loadExternalRelevanceJudgment(qrelFile); testScorer.loadExternalRelevanceJudgment(qrelFile); } } public Evaluator(RANKER_TYPE rType, METRIC metric, int k)
public Evaluator(RANKER_TYPE rType, String trainMetric, String testMetric) { this.type = rType; trainScorer = mFact.createScorer(trainMetric); testScorer = mFact.createScorer(testMetric); if(qrelFile.compareTo("") != 0) { trainScorer.loadExternalRelevanceJudgment(qrelFile); testScorer.loadExternalRelevanceJudgment(qrelFile); } }
public Evaluator(final RankerType rType, final METRIC metric, final int k) { this.type = rType; trainScorer = mFact.createScorer(metric, k); if (!qrelFile.isEmpty()) { trainScorer.loadExternalRelevanceJudgment(qrelFile); } testScorer = trainScorer; }