Calculate the average precision

averagePrecision(prediction)

Arguments

prediction

A prediction object

Value

The average precision

Details

Calculates the average precision from a predition object