Optimal classification by mixed-initiative nested thresholding