http://labs.timedia.co.jp/2017/04/14/logistic-regression.png