Why the linear regression and classification have identical Gradient Function?

Hello @rkranjan,

For both linear regression and logistic regression, their derivatives of cost with respect to w and b happen to have the same form. Did you try to carry out the derivatives yourself? Here is a very similar discussion.

Raymond