Hi, I found this in a paper about loss functions, but I cannot seem to find anything about it elsewhere.
the paper is this one: https://arxiv.org/pdf/1702.05659.pdf 3
On page 2 you can see that in order to define hinge loss and its variants, it uses a -1/+1 encoded label, instead of the one hot encoded label used for the cross entropy loss.
Can anyone help me understand how this works and maybe suggest a way of implementing it in pytorch?
Thank you in advance