Calibrating for Class Weights by Modeling Machine Learning