Skip to content

Find Average Recall and Precision. #473

New issue

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

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

Already on GitHub? # to your account

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.
@ghost
Copy link

ghost 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.

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

Successfully merging this pull request may close these issues.

1 participant