logistic_regression function

Logistic regression