Regular term can also be added to logistic regression to avoid overfitting.