Dear @smth,
This is the first time I write PyTorch for a multi-class classification problem, though I wrote numerous notebooks for Binary classification using PyTorch, I seem to have a problem with the loss function.
Do you mind taking a look?
https://www.kaggle.com/solomonk/pytorch-speech-recognition-challenge-wip 99
Few questions:
What is the recommended way to encode the labels for a multi-class problem?
I used
df_pred['label'] = LabelEncoder().fit_transform(df_pred['label-str'])

(I then save this as a CSV which can be read later)
At present I am doing this outside my custom dataset class, is there any reference implementation for doing this inside my GenericImageDataset?
Thanks,