Evaluation.AveragePrecision: Calculates the Average Precision

Description Usage Arguments Value Examples

View source: R/Evaluation.R

Description

Calculates the Average Precision

Usage

1
Evaluation.AveragePrecision(EstimatedRank, RelevanceLevel)

Arguments

EstimatedRank

estimated ranking

RelevanceLevel

score for the document

Value

The AP for this estimation and relevance level

Examples

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

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