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

Focalloss只针对正分类logits进行了处理,没有针对误分类logits处理 #5

Open
lkjie opened this issue Feb 18, 2019 · 0 comments

Comments

@lkjie
Copy link

lkjie commented Feb 18, 2019

假设一个三分类任务,
ytruei = tf.Variable([0], dtype=tf.float32)
ypred = tf.Variable([[0.5,0.25,0.25]])
ypred2 = tf.Variable([[0.5,0.4,0.1]])
对于ypred与ypred2来讲两者的loss不应该相同,
把负样本的损失也加上比较好

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