Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong ap@k #51

Open
MentalOmega opened this issue Apr 13, 2019 · 2 comments
Open

wrong ap@k #51

MentalOmega opened this issue Apr 13, 2019 · 2 comments

Comments

@MentalOmega
Copy link

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

@TingNLP
Copy link

TingNLP commented Sep 12, 2019

@MegaYEye
Copy link

MegaYEye commented Jan 2, 2020

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]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants