Update the Gradient

Apply what we have learned about sigmoids by updating the loss function.

Updating the loss function

Now that we have a brand-new loss function, let’s look up its gradient. Here is the partial derivative of the log loss with respect to the weight from the math textbooks:

δLδw=1mi=1mxi(yi^yi)\frac{\delta L}{\delta w} = \frac{1}{m} \sum_{i=1}^{m} x_i (\hat{y_i} - y_i) ...

Access this course and 1400+ top-rated courses and projects.