We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
nnFormer/nnformer/training/loss_functions/dice_loss.py
Line 132 in 0298100
您这边tp是这样计算的,我咋感觉和我们在多分类里面的计算公式不太一样呢
The text was updated successfully, but these errors were encountered:
您好,您可以把您这个dice loss的计算公式写一下吗?我有点看不懂这个dice loss计算方式,尤其是求tp fp tn fn的计算公式
Sorry, something went wrong.
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
非常感谢大佬详细的指点
No branches or pull requests
nnFormer/nnformer/training/loss_functions/dice_loss.py
Line 132 in 0298100
您这边tp是这样计算的,我咋感觉和我们在多分类里面的计算公式不太一样呢
The text was updated successfully, but these errors were encountered: