Closed fkurushin closed 3 hours ago
https://github.com/benhamner/Metrics/blob/9a637aea795dc6f2333f022b0863398de0a1ca77/Python/ml_metrics/average_precision.py#L39
due to wiki you should divide the score by the number of actual documents
https://en.wikipedia.org/w/index.php?title=Information_retrieval&oldid=793358396#Average_precision
So many comments on this. closed
https://github.com/benhamner/Metrics/blob/9a637aea795dc6f2333f022b0863398de0a1ca77/Python/ml_metrics/average_precision.py#L39
due to wiki you should divide the score by the number of actual documents
https://en.wikipedia.org/w/index.php?title=Information_retrieval&oldid=793358396#Average_precision