Derivative of Relu in output layer

Exactly as @paulinpaloalto’s explained. Therefore, the hint is from you.

leaky relu isn’t that bad, look at my results:

I have made these changes, have you done the same:

    # dAL = (1./m)*(AL-Y) #commented this
    dAL = AL-Y #uncommented this
  1. change “relu” to “leaky_relu”. There are 4 places to change. 4 places :wink:

That’s nice!

Deep and dark.

Cheers,
Raymond

2 Likes