Could you explain the binary loss function in the code in relation to the one explained in the video?

loss_reg_1 = -1 * np.sum(y_true * np.log(y_pred_1)) + (-1 * np.sum((1 - y_true) * np.log(1 - y_pred_1)))

video link:

I think its better you should read this article or similar can be found in the web that explains it in detailed manner.

Binary Cross Entropy/Log Loss for Binary Classification.

1 Like