ReLU Derivative
Functions
relu_derivative(Z)
Compute the derivative of the ReLU (Rectified Linear Unit) activation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Z |
ndarray
|
The input array. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: An array with the same shape as Z, containing 1.0 where Z > 0 and 0.0 elsewhere. |