You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello: I notice that the reuslt from running apk([1, 1, 1], [1, 1, 1], 3) does not return 1. I wonder if it should be if p in actual and p in predicted[:i+1]? Thank you.
The text was updated successfully, but these errors were encountered:
You are right - it's incorrect.
I believe this repo is not maintained for very long, but I would still deprecate it - I spent a few hours on that, and it did not help this error also propagated to a tutorial on the subject.
@yanyijiang09@maayanorner I also noticed that in the return statement the authors divide precision by the number of actual documents, but they should divide precision by the number of relevant documents.
Metrics/Python/ml_metrics/average_precision.py
Line 32 in 9a637ae
Hello: I notice that the reuslt from running
apk([1, 1, 1], [1, 1, 1], 3)
does not return 1. I wonder if it should beif p in actual and p in predicted[:i+1]
? Thank you.The text was updated successfully, but these errors were encountered: