benhamner / Metrics

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

wrong ap@k #49

Open pursueorigin opened 6 years ago

pursueorigin commented 6 years ago

it should return return score / num_hits rather than return score / min(len(actual), k)