I am implementing a feed-forward neural network with leaky ReLU activation functions and back-propagation from scratch. Now, I need to compute the partial derivatives, but I don't know what the derivative of the Leaky ReLU is.
Here is the C# code for the leaky RELU function which I got from this site:
private double leaky_relu(double x)
{
if (x >= 0)
return x;
else
return x / 20;
}