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

MultiLabelClassificationTask use sigmoid instead of softmax #791

Conversation

isaaccorley
Copy link
Collaborator

MultiLabelClassificationTask was using torch.softmax on the outputs prior to computing metrics, however we should use torch.sigmoid instead since each output logit is indepedent of others in the multilabel case.

@isaaccorley isaaccorley added the trainers PyTorch Lightning trainers label Sep 26, 2022
@isaaccorley isaaccorley added this to the 0.3.2 milestone Sep 26, 2022
@isaaccorley isaaccorley self-assigned this Sep 26, 2022
@isaaccorley isaaccorley force-pushed the trainers/multilabel-classifier-sigmoid-fix branch from a4d4dd3 to bf6343c Compare September 27, 2022 17:22
@isaaccorley isaaccorley force-pushed the trainers/multilabel-classifier-sigmoid-fix branch from bf6343c to 71b1025 Compare September 28, 2022 14:17
@calebrob6 calebrob6 merged commit 1f04bd3 into microsoft:main Sep 30, 2022
@isaaccorley isaaccorley deleted the trainers/multilabel-classifier-sigmoid-fix branch September 30, 2022 18:37
@adamjstewart adamjstewart modified the milestones: 0.3.2, 0.4.0 Jan 23, 2023
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trainers PyTorch Lightning trainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants