update logistic-regression.py