changes for ThresholdClassifier second edition