Calculate DB Method
Functions
calculate_db(dZ, m)
Calculate the gradient of the bias.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dZ |
ndarray
|
Gradient of the cost with respect to the linear output. |
required |
m |
int
|
Number of training examples. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: Gradient of the bias. |