You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Normally the PyTorch labels for classification are in integer numbers associated with classes.
For the MixMatch algorithm, the labels need to be in one hot format.
The to_categorical function was taken from Keras code, is able to handle batches.
num_clases=10 for future CIFAR test.
Inside of the algorithm y is converted to one hot encode format.
At the end of the MixMatch phase, the labels p and q are converted back to the natural classes format in PyTorch
0 commit comments