Logistic Regression for Machine Learning