Evaluation.Precision.at.k {StatRank}R Documentation

Calculates the Average Precision at k

Description

Calculates the Average Precision at k

Usage

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

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

[Package StatRank version 0.0.6 Index]