https://www.arunangshudas.com/blog/logistic-regression/