Logistic Regression: Gradient Descent
Recall that the general form of gradient descent is:
Computing for our cost function for Logistic regression, we get:
(simultaneously update for every )
Note that the gradient descent algorithm for logistic regression in terms of hypothesis function looks exactly same as that for the linear regression. Note, however, that the actual hypothesis function used in linear regression and logistic regression are different.
The idea of using feature scaling for making gradient descent work faster also applies for Logistic regression.
where are vectors as shown below