update logistic regression