Machine Learning Solutions - Exercise 2: Logistic Regression