All-threshold loss + label encoding for logistic regression