Evaluation.NDCG: Calculates the Normalized Discounted Cumluative Gain

Description Usage Arguments Value Examples

View source: R/Evaluation.R

Description

Calculates the Normalized Discounted Cumluative Gain

Usage

1
Evaluation.NDCG(EstimatedRank, RelevanceLevel)

Arguments

EstimatedRank

estimated ranking

RelevanceLevel

score for the document

Value

The NDCG for this estimation and relevance level

Examples

1
2
3
EstimatedRank <- scramble(1:10)
RelevanceLevel <- runif(10)
Evaluation.NDCG(EstimatedRank, RelevanceLevel)

Example output

[1] 0.75516

StatRank documentation built on May 1, 2019, 8:22 p.m.