I am trying to use: [SparseCategoricalCrossEntropy][https://www.tensorflow.org/api_docs/python/tf/keras/losses/SparseCategoricalCrossentropy] for multiclass classification
This will give me the last dimension as the number of classes (N_CLASSES). But I want to retrive the actual class labels from the predictions.
Basically if I have 5 classes (N_CLASSES=5), then I have 5 columns, each containing the probability of the class. But I don't know which column belongs to which actual label. How do I retrieve the actual class labels ?
For example if I have my actual class labels as [1.03, 2.07, -2.09, -974, 366], then from the output of shape (None, 5) how do I know which column represents which class?
Note: I cannot use CategoricalCrossEntropy and pass in the one-hot encoded actual target representation due to memory issues.
Any help will be really appreciated
