Regularized multivariate logistic regression