MPL-pytorch icon indicating copy to clipboard operation
MPL-pytorch copied to clipboard

Incorrect cross entropy?

Open conorturner opened this issue 3 years ago • 0 comments

https://github.com/kekmodel/MPL-pytorch/blob/7fb5b40cd53179bf4c09ef0f916815c3272d3e9d/main.py#L197

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?

conorturner avatar Sep 24 '22 12:09 conorturner