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