Weights in weighted loss (nn.CrossEntropyLoss)

Yes, it seems to be possible. I found this thread which explains how you can learn the weights for the cross-entropy loss: Is that possible to train the weights in CrossEntropyLoss?

Good luck!

1 Like