Error in L2 regularisation code_TypeError: log_loss() missing 1 required positional argument: 'y_pred'

While going through this notebook. I found an error.

Please rectify it.

Can you check if the brackets in expression below are correct?

loss.append(log_loss(np.argmax(Y, axis = 1)), y_pred)

looks like, it might be:

loss.append(log_loss(np.argmax(Y, axis=1), y_pred))

1 Like

Thanks a lot for help…