Logistic regression and regularization