A Logistic Regression implementation. Check http://ajourneyintodatascience.com/logistic-regression for the full story :D.