Typo for loss function in C1 W3 Optional lab: Logistic loss

I checked the video and there should be a minus sign.

\begin{equation} loss(f_{\mathbf{w},b}(\mathbf{x}^{(i)}), y^{(i)}) = \begin{cases} - \log\left(f_{\mathbf{w},b}\left( \mathbf{x}^{(i)} \right) \right) & \text{if $y^{(i)}=1$}\\ -\log \left( 1 - f_{\mathbf{w},b}\left( \mathbf{x}^{(i)} \right) \right) & \text{if $y^{(i)}=0$} \end{cases} \end{equation}

Hey @explorare,
Welcome to the community. Thanks for pointing it out. I will report this issue right away.

Regards,
Elemento

1 Like