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
你好,很感谢您的代码,我预测效果很差,多次修改损失函数都没有效果,看代码发现这里有点疑问,请问这里是不是错了? man.py代码: logits = torch.sigmoid(outputs) labels = logits.clone() labels[labels>0.5] = 1 labels[labels<=0.5] = 0 loss = criterion(outputs, y)#有问题?应该为loss = criterion(logits, y)
The text was updated successfully, but these errors were encountered:
没有问题
Sorry, something went wrong.
啊 好的 谢谢
No branches or pull requests
你好,很感谢您的代码,我预测效果很差,多次修改损失函数都没有效果,看代码发现这里有点疑问,请问这里是不是错了?
man.py代码:
logits = torch.sigmoid(outputs)
labels = logits.clone()
labels[labels>0.5] = 1
labels[labels<=0.5] = 0
loss = criterion(outputs, y)#有问题?应该为loss = criterion(logits, y)
The text was updated successfully, but these errors were encountered: