Machine learning logistic regression in python with an example linear regression graph (2)