ReLU
Functions
relu(Z)
Compute 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 the ReLU activation values. |