Binary classification with logistic regression