47 virtual std::string
name()
const {
61 virtual std::unique_ptr<Jacobian>
jacobian(
62 std::shared_ptr<data::RankedResults> ranked)
const;
75 virtual std::ostream &
put(std::ostream &os)
const;
Definition: dataset.cc:28
virtual std::unique_ptr< Jacobian > jacobian(std::shared_ptr< data::RankedResults > ranked) const
Computes the Jacobian matrix.
Definition: ndcg.cc:60
virtual std::string name() const
Returns the name of the metric.
Definition: ndcg.h:47
virtual std::ostream & put(std::ostream &os) const
Prints the short name of the Metric, e.g., "NDCG@K".
Definition: ndcg.cc:91
friend std::ostream & operator<<(std::ostream &os, const Ndcg &ndcg)
Definition: ndcg.h:71
virtual MetricScore evaluate_result_list(const quickrank::data::QueryResults *rl, const Score *scores) const
Definition: ndcg.cc:49
virtual ~Ndcg()
Definition: ndcg.h:43
This class implements the Normalized Discounted cumulative Gain NDCG@k measure.
Definition: ndcg.h:38
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
Ndcg(size_t k=NO_CUTOFF)
Definition: ndcg.h:40
static const std::string NAME_
Definition: ndcg.h:51
MetricScore compute_idcg(const quickrank::data::QueryResults *rl) const
Computes the IDCG@K of a given list of labels.
Definition: ndcg.cc:35
This class implements the Discounted cumulative Gain DCG@K measure.
Definition: dcg.h:37
This class wraps a set of results for a given query.
Definition: queryresults.h:36
double MetricScore
data type for QueryID in L-t-R datasets
Definition: types.h:33