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

tp计算方式 #72

Open
tricksterANDthug opened this issue May 18, 2022 · 3 comments
Open

tp计算方式 #72

tricksterANDthug opened this issue May 18, 2022 · 3 comments

Comments

@tricksterANDthug
Copy link

tp = net_output * y_onehot

您这边tp是这样计算的,我咋感觉和我们在多分类里面的计算公式不太一样呢

@tricksterANDthug
Copy link
Author

您好,您可以把您这个dice loss的计算公式写一下吗?我有点看不懂这个dice loss计算方式,尤其是求tp fp tn fn的计算公式

@282857341
Copy link
Owner

dice loss其实就是你在另一个issue里说的1-(2*intersection )/union。
tp就是intersection,tp = net_output * y_onehot 中的net_output就是网络输出,每个通道代表每一个类别的预测结果,y_onehot 的通道数和net_output一致,每个通道代表ground truth每个类别的情况。这两个变量相乘就得到了网络预测和ground truth相交的部分,也就是tp。

fp tn fn也是一样的理解,由对网络的输出取反,或者对ground truth取反得到fp tn fn

@tricksterANDthug
Copy link
Author

非常感谢大佬详细的指点

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

2 participants