GoogleTests understanding of loss functions and optimization – core to training any classification model.
Cross-entropy measures the difference between two probability distributions. For classification with true labels y and predicted probabilities y_hat, implement both multi-class and binary cross-entropy loss.