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

Find Average Recall and Precision. #473

Open
wants to merge 1 commit into
base: master
from

Conversation

@AtriSaxena
Copy link

@AtriSaxena AtriSaxena commented Apr 27, 2020

As many people looking to find the Average Recall and Precision like in issue #352 It's better we should add this in evaluation code.

As many people looking to find the Average Recall and Precision like in issue #352 It's better we should add this in evaluation code.
@shirui-japina
Copy link

@shirui-japina shirui-japina commented Jul 15, 2020

Maybe my understanding is wrong, but I think it should be like this:

    ...
    recs = []
    precs = []
    ...
        ...
        recs += [rec] 
        precs += [prec]
        ...
    ...
    print('Average Recall = {:.4f}'.format(np.mean(recs)))
    print('Average Precision = {:.4f}'.format(np.mean(precs)))
    ...

What do you think?

@AtriSaxena
Copy link
Author

@AtriSaxena AtriSaxena commented Jul 27, 2020

Yes. I also did the same changes.

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

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.