Now, we have already covered the logistic regression algorithm briefly in the earlier section. But here's a recap of how we learn our parameters:
- We start out by initializing theta as a zero vector:

- As this is a hill-climbing algorithm, it is iterative. So, for each iteration, we compute the log odds as theta transpose X and then transform them via the logistic transformation:

- Next, we compute the gradient, which is a vector of partial derivatives of the slope of our function, which we covered in the last section. We simply ...