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

Average Precision Computation #2

Closed
kemaloksuz opened this issue Mar 22, 2020 · 3 comments
Closed

Average Precision Computation #2

kemaloksuz opened this issue Mar 22, 2020 · 3 comments

Comments

@kemaloksuz
Copy link

Hi,

I noticed that while in the paper in Equation 5 during AP derivation, you add 1 both to the nominator and to the denominator following simply the formulation of AP.

But in this line of the code, you add 0.5 to the variable a and then estimate the precision by a/(a+b), which implies 0.5 is added to nominator and denominator. I understand all of your code and match with the paper, but I only could not see why you add 0.5 instead of 1 here. Am I missing something?

Thanks for your time

Kemal

@cccorn
Copy link
Owner

cccorn commented Mar 22, 2020

In this code, the variable tmp1 contains f(x_{ii}) (f is the piecewise step function, i is the positive index), while in the Eq 5 of the paper, the summation is taken with j \neq i.
So the summation of tmp1 already has a 0.5=f(x_{ii}), just need to add another 0.5 to obtain 1.

@kemaloksuz
Copy link
Author

OK, I see now. Thank you for the quick replies.

@www516717402
Copy link

great help.

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