https://developers-heaven.net/blog/implementing-logistic-regression-in-python-for-classification/