Code for creating the visualizations in this post.
Exploring class weights in imbalanced classification settings