Hello all, getting used to PyTorch. Trying to figure out how to do custom loss functions that are a bit more complicated than MSE. For instance, the quadratic weighted kappa score that was used a few years back in this old Kaggle competition: https://www.kaggle.com/c/diabetic-retinopathy-detection#evaluation 44.

image.png709×477 32.1 KB

Thanks!!!