Finish the logistic regression