Metrics icon indicating copy to clipboard operation
Metrics copied to clipboard

wrong ap@k

Open MentalOmega opened this issue 5 years ago • 2 comments

After I run the code in my anaconda3

pip install ml_metrics Collecting ml_metrics Requirement already satisfied: numpy in /home/westwood/anaconda3/lib/python3.7/site-packages (from ml_metrics) (1.15.1) Requirement already satisfied: pandas in /home/westwood/anaconda3/lib/python3.7/site-packages (from ml_metrics) (0.23.4) Requirement already satisfied: python-dateutil>=2.5.0 in /home/westwood/anaconda3/lib/python3.7/site-packages (from pandas->ml_metrics) (2.7.3) Requirement already satisfied: pytz>=2011k in /home/westwood/anaconda3/lib/python3.7/site-packages (from pandas->ml_metrics) (2018.5) Requirement already satisfied: six>=1.5 in /home/westwood/anaconda3/lib/python3.7/site-packages (from python-dateutil>=2.5.0->pandas->ml_metrics) (1.11.0) Installing collected packages: ml-metrics Successfully installed ml-metrics-0.1.4

In the file

image

Is wrong !!!

And different with

image

MentalOmega avatar Apr 13 '19 13:04 MentalOmega

Denominator seems error? https://medium.com/@pds.bangalore/mean-average-precision-abd77d0b9a7e

TingNLP avatar Sep 12 '19 09:09 TingNLP

Hi, the code for counting scores is also not consistent with https://web.stanford.edu/class/cs276/handouts/EvaluationNew-handout-1-per.pdf why using p not in predicted[:i]?

MegaYEye avatar Jan 02 '20 09:01 MegaYEye