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
Choose a base branch
from

Conversation

AtriSaxena
Copy link

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 amdegroot#352 It's better we should add this in evaluation code.
@decoli
Copy link

decoli 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

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants