Calculate DZ Softmax CCE Method
Functions
calculate_dZ_softmax_categorical_crossentropy(A, Y)
Calculate dZ for softmax activation with categorical cross-entropy loss.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
A |
ndarray
|
Activations of the current layer (softmax output). |
required |
Y |
ndarray
|
True labels (one-hot encoded). |
required |
Returns:
| Type | Description |
|---|---|
|
numpy.ndarray: Gradient of Z. |