make metric compatible to logistic reg