I have a binary classification problem with highly imbalanced data (250 negatives for every 1 positive). If I use NLLLoss (or CrossEntropyLoss), what should the class weights be?
I’m also testing the custom BCE Loss function at [SOLVED] Class Weight for BCELoss.
Thanks so much!