https://cognitivehub.in/python-divide-by-zero-encountered-in-log-logistic-regression/