finish logistic regression cg