Evaluation.Precision.at.k: Calculates the Average Precision at k

Description Usage Arguments Value Examples

View source: R/Evaluation.R

Description

Calculates the Average Precision at k

Usage

1
Evaluation.Precision.at.k(EstimatedRank, RelevanceLevel, k)

Arguments

EstimatedRank

estimated ranking

RelevanceLevel

score for the document

k

positive that we want to run this algorithm for

Value

The AP at k for this estimation and relevance level

Examples

1
2
3
EstimatedRank <- scramble(1:10)
RelevanceLevel <- runif(10)
Evaluation.Precision.at.k(EstimatedRank, RelevanceLevel, 5)

Example output

[1] 0.4727986

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