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

Incorrect cross entropy? #34

Open
conorturner opened this issue Sep 24, 2022 · 0 comments
Open

Incorrect cross entropy? #34

conorturner opened this issue Sep 24, 2022 · 0 comments

Comments

@conorturner
Copy link

s_loss = criterion(s_logits_us, hard_pseudo_label)

At this point hard_pseudo_label is a batch size by 1 array of integer indexes, not a one hot encoding.

Is this correct when calculating cross entropy?

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

1 participant