https://pmpsz.com/logistic-regression-in-machine-learning/