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)))
I think its better you should read this article or similar can be found in the web that explains it in detailed manner.
1 Like