RankingEvaluator.java:
New MAP, DCG, and NDCG evaluation metrics
RankingEvaluatorTest.java:
New MAP, DCG, and NDCG test methods. TODO, should probably expand on these tests
TrainingMap.java:
Added optional argument, createOnGet to the training map constructor.
This is to add the option to build an evaluator that only considers the results of the predicates in the truth partition, otherwise, the default truth value is used to evaluate unmatched targets, which throws off MAP, and NDCG evaluation.
When createOnGet is set to false then the inferred predicates without truth values are considered latent.
RankingEvaluator.java: New MAP, DCG, and NDCG evaluation metrics
RankingEvaluatorTest.java: New MAP, DCG, and NDCG test methods. TODO, should probably expand on these tests
TrainingMap.java: Added optional argument, createOnGet to the training map constructor.
This is to add the option to build an evaluator that only considers the results of the predicates in the truth partition, otherwise, the default truth value is used to evaluate unmatched targets, which throws off MAP, and NDCG evaluation.
When createOnGet is set to false then the inferred predicates without truth values are considered latent.