Calculate DB Wrapper Method
Functions
calculate_db_wrapper(model, i, m)
Wrapper function to calculate the gradient of the bias for a specific layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
model |
Sequential
|
The neural network model. |
required |
i |
int
|
Index of the current layer. |
required |
m |
int
|
Number of training examples. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: Gradient of the bias for the specified layer. |