case classNdcgAtK[T](k: Int) extends Aggregator[RankingPrediction[T], (Double, Long), Double] with Product with Serializable
Compute the average NDCG value of all the predictions, truncated at ranking position k.
The discounted cumulative gain at position k is computed as:
sumi=1k (2{relevance of ith item} - 1) / log(i + 1),
and the NDCG is obtained by dividing the DCG value on the ground truth set. In the current
implementation, the relevance value is binary.
If a query has an empty ground truth set, zero will be used as ndcg
See the following paper for detail:
IR evaluation methods for retrieving highly relevant documents. K. Jarvelin and J. Kekalainen
k
the position to compute the truncated ndcg, must be positive
Linear Supertypes
Serializable, Product, Equals, Aggregator[RankingPrediction[T], (Double, Long), Double], Serializable, AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
NdcgAtK
Serializable
Product
Equals
Aggregator
Serializable
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newNdcgAtK(k: Int)
k
the position to compute the truncated ndcg, must be positive
Compute the average NDCG value of all the predictions, truncated at ranking position k. The discounted cumulative gain at position k is computed as: sumi=1k (2{relevance of ith item} - 1) / log(i + 1), and the NDCG is obtained by dividing the DCG value on the ground truth set. In the current implementation, the relevance value is binary. If a query has an empty ground truth set, zero will be used as ndcg
See the following paper for detail:
IR evaluation methods for retrieving highly relevant documents. K. Jarvelin and J. Kekalainen
the position to compute the truncated ndcg, must be positive