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

Training in a multi-label classification setting #34

Closed
guillaumejaume opened this issue Feb 2, 2021 · 1 comment
Closed

Training in a multi-label classification setting #34

guillaumejaume opened this issue Feb 2, 2021 · 1 comment

Comments

@guillaumejaume
Copy link

Hi,

Thanks for open sourcing such a great project. I was wondering if the code could be used or easily modified for handling a multi-label classification tasks, eg in most of the prostate grading datasets, the objective is to predict both the primary and the secondary Gleason score leading to 2 different labels for each WSI.

Thanks for the info!

@fedshyvana
Copy link
Collaborator

Yes, it should be fairly easy to modify. I don't do multi-label tasks, but intuitively you should be able to pass the groundtruth labels as a vector and modify the loss function to use a binary cross-entropy (with sigmoid activation) over the prediction score for each label class instead of a softmax activation?

@faisalml faisalml closed this as completed Feb 4, 2021
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

3 participants