Adventures in Imbalanced Learning and Class Weight (andersource.dev)
A few months ago I was working on an image classification problem with severe class imbalance - the positive class was much rarer than the negative class.