Logistic regression for binary classification