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

About the calculation of top-3 index function --关于top-3指标函数计算的问题 #3

Open
mymuli opened this issue Oct 27, 2019 · 0 comments

Comments

@mymuli
Copy link

mymuli commented Oct 27, 2019

I use the evaluation function given by you, in index TOP-3, and the calculation results are as follows:
P_C 65.06 R_C 79.06 F_C 65.92 --- P_O 65.06 R_O 67.81 F_O 66.41

But I found that there was a problem, because in index ALL, the calculation results are as follows:
P_C 79.54 R_C 66.22 F_C 71.70 --- P_O 82.17 R_O 70.42 F_O 75.84

The calculation results of P and R in index ALL and index TOP-3 are contradictory.
I think it's because of our different understanding of top-3 calculation.
我觉得是我们对计算top-3指标的理解不同造成的
指标
指标2
如果预测的前三名结果,有一个或两个或三个的概率均低于0.5(没有使用sigmoid时低于0),但是在代码里面全部赋值为1(正标签),这样做是有问题的,我们应该做一个判断,只有概率大于0.5(使用sigmoid时大于0)的情况才赋值为1...如果这样做的话,我的实验将会和论文《Learning Spatial Regularization with Image-level Supervisions for Multi-label Image Classification》的情况相同,不会出现ALL和TOP-3里面,P和R相互矛盾
If one or two or three of the predicted top three results are less than 0.5 (less than 0 when sigmoid is not used), but all of them are assigned to 1 (positive label) in the code, this is problematic. We should make a judgment that only when the probability is greater than 0.5 (more than 0 when sigmoid is used), the value will be assigned to 1... If this is done, my experiment will be compared with The situation of paper 《Learning Spatial Regularization with Image-level Supervisions for Multi-label Image Classification》is the same. There will be no contradiction between P and R in ALL and TOP-3.

top3[ind_example, top_pred_inds[k]] = 1

My code is as follows:

123

我个人认为你需要对代码进行修改,并且我认为修改后的实验结果,会比现在好
I personally think you need to modify the code, and I think the modified experiment results will be better than now

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

1 participant