Classification with logistic regression