Logistic Regression Algorithm - #Python Machine Learning