47 virtual std::string
name()
const {
61 virtual std::unique_ptr<Jacobian>
jacobian(
62 std::shared_ptr<data::RankedResults> ranked)
const;
70 const Score *scores)
const;
77 virtual std::ostream &
put(std::ostream &os)
const;
Definition: dataset.cc:28
MetricScore compute_tndcg(const quickrank::data::QueryResults *rl, const Score *scores) const
Computes the TNDCG@K of a given list of labels.
Definition: tndcg.cc:33
friend std::ostream & operator<<(std::ostream &os, const Tndcg &tndcg)
Definition: tndcg.h:73
virtual std::ostream & put(std::ostream &os) const
Prints the short name of the Metric, e.g., "NDCG@K".
Definition: tndcg.cc:127
static const std::string NAME_
Definition: tndcg.h:51
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
virtual MetricScore evaluate_result_list(const quickrank::data::QueryResults *rl, const Score *scores) const
Definition: tndcg.cc:65
static const size_t NO_CUTOFF
This should be used when no cut-off on the results list is required.
Definition: metric.h:46
This class implements a Tie-aware version of Normalized Discounted Cumulative Gain TNDCG@k measure...
Definition: tndcg.h:38
virtual std::string name() const
Returns the name of the metric.
Definition: tndcg.h:47
virtual ~Tndcg()
Definition: tndcg.h:43
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: tndcg.cc:75
Tndcg(size_t k=NO_CUTOFF)
Definition: tndcg.h:40
double MetricScore
data type for QueryID in L-t-R datasets
Definition: types.h:33