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

Question about label propagation during finetuning #27

Open
Saurabh7 opened this issue Aug 18, 2022 · 1 comment
Open

Question about label propagation during finetuning #27

Saurabh7 opened this issue Aug 18, 2022 · 1 comment

Comments

@Saurabh7
Copy link

In https://github.com/ServiceNow/embedding-propagation/blob/master/src/models/finetuning.py#L103 , why is the query matrix multiplied by nclasses .
Shouldn't it start from zeros matrix since no labels are available for queries .. and labels are propagated from neighbors?

@prlz77
Copy link
Contributor

prlz77 commented Aug 18, 2022

Hi @Saurabh7,

This is just to flag these labels as "unlabeled". As you can see here:

labels = labels[:, :nclasses].float() # the max label is unlabeled
they are skipped since the dimension "nclasses" in the one_hot vector is removed. (0...01 -> 0...0)

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