benhamner / Metrics

Machine learning evaluation metrics, implemented in Python, R, Haskell, and MATLAB / Octave
Other
1.63k stars 454 forks source link

Average precision denominator #59

Closed fkurushin closed 3 hours ago

fkurushin commented 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

fkurushin commented 3 hours ago

So many comments on this. closed