itarticle simplify cost function and gradient descent of logistic regression (cs229) Combine equations $(1)$ Rewrite Logistic Regression Cost Function Gradient descent 0