fixed get_best_alpha to adjust whether min or max score should be used, based on measure