Machine Learning Logistic Regression， refer to  http://blog.csdn.net/suipingsp/article/details/41822313