Adding Ridge L2 regularization to logistic model