Bases: Loss
Categorical-Cross Entropy (a.k.a., Log-Loss) function for classification.
Methods
-
__call__(y_true: ndarray, y_pred: ndarray | dict) → ndarray[source]
Compute the loss function.
- Parameters:
-
- Returns:
the loss value with first dimension n_samples
.
- Return type:
np.ndarray