Calculate A Method
Functions
calculate_A(Z, activation)
Calculate the activation output for a given input and activation function.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Z |
ndarray
|
The input to the activation function. |
required |
activation |
str
|
The name of the activation function to use. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: The output after applying the activation function. |