Logistic Regression Python Code From Grow