Skip to content

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.

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.

1 participant