NDCG

io.github.metarank.ltrlib.metric.NDCG
See theNDCG companion object
case class NDCG(cutoff: Int, relpow: Boolean, nolabels: Double, single: Double) extends Metric

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Metric
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def eval(y: Array[Array[Double]], yhat: Array[Array[Double]]): Double

Eval metric for multiple query groups

Eval metric for multiple query groups

Value parameters

y

ground truth

yhat

predicted values

Attributes

Definition Classes
def evalOne(y: Array[Double], yhat: Array[Double], k: Int): Double
def isZero(values: Array[Double]): Boolean
def log(base: Double, value: Double): Double

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

val base: Double