Why isn't the actual loss function for logistic regression not put in place of cost function while implementing gradient descent? Shouldn't the cost function containing the log function be partially differentiated?

Yes, they happen to look the same. You may derive it yourself, or you may read this post.

1 Like