hyperparam optimizer optimizes thresholding