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

multi-label classification #3

Closed
bruffridge opened this issue Nov 30, 2021 · 1 comment
Closed

multi-label classification #3

bruffridge opened this issue Nov 30, 2021 · 1 comment

Comments

@bruffridge
Copy link

I read your paper, and was impressed by your approach. I'm considering using this approach for a multi-label classification problem I'm working on, but from the paper it seems that ASTRA is only doing multi-class classification. Do you know if it is possible to modify ASTRA to extract confidence scores for each class for each instance? My use-case involves generating a list of documents ranked by predicted similarity to a given class.

@gkaramanolakis
Copy link
Collaborator

The current version of ASTRA supports multi-class classification but it is possible to modify it for multi-label classification problems.

In our paper, you would need to replace the loss functions for the Teacher and Student (Equations 1 and 4) with the corresponding multi-label versions.

Our code directly provides access to the Teacher's probabilities (i.e., soft pseudo-labels instead of hard pseudo-labels) here. You can use the Teacher's probabilities and define a multi-label loss as part of the Student's trainer code here.

I hope this helps. :)

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

2 participants