Variable-Based Calibration for Machine Learning Classifiers