Calculate DZ Linear MSE Method
Functions
calculate_dZ_linear_mean_squared_error(A, Y, Z)
Calculate dZ for linear activation with mean squared error loss.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
A |
ndarray
|
Activations of the current layer. |
required |
Y |
ndarray
|
True labels. |
required |
Z |
ndarray
|
Linear output of the current layer. |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: Gradient of Z. |