ReLU sets every negative input to zero, which kills gradients for those units. Parametric ReLU (He et al., 2015) keeps a small learnable slope a for negative inputs, so those units still carry signal and gradient.
Implement prelu(x, a), which returns x for positive entries and a * x for non-positive ones.
a is a float; a = 0 gives ordinary ReLU.np.where(x > 0, x, a * x) applies the rule element-wise in one call.
No results yet
Run your code to check it against the examples, or submit to run every test.