45 virtual std::string
name()
const {
54 virtual std::unique_ptr<Jacobian>
jacobian(
55 std::shared_ptr<data::RankedResults> ranked)
const;
64 virtual std::ostream &
put(std::ostream &os)
const;
Definition: dataset.cc:28
virtual ~Map()
Definition: map.h:41
virtual std::string name() const
Returns the name of the metric.
Definition: map.h:45
This class implements the basic functionalities of an IR evaluation metric.
Definition: metric.h:43
virtual MetricScore evaluate_result_list(const quickrank::data::QueryResults *rl, const Score *scores) const
Measures the quality of the given results list according to the Metric.
Definition: map.cc:33
This class implements the average precision AP@k measure.
Definition: map.h:36
double Score
data type for instance truth label
Definition: types.h:30
static const size_t NO_CUTOFF
This should be used when no cut-off on the results list is required.
Definition: metric.h:46
virtual std::ostream & put(std::ostream &os) const
Prints the short name of the Metric, e.g., "NDCG@K".
Definition: map.cc:83
friend std::ostream & operator<<(std::ostream &os, const Map &map)
Definition: map.h:60
static const std::string NAME_
Definition: map.h:49
This class wraps a set of results for a given query.
Definition: queryresults.h:36
virtual std::unique_ptr< Jacobian > jacobian(std::shared_ptr< data::RankedResults > ranked) const
Computes the Jacobian matrix.
Definition: map.cc:47
Map(size_t k=NO_CUTOFF)
Definition: map.h:38
double MetricScore
data type for QueryID in L-t-R datasets
Definition: types.h:33