Deep Learning, Machine Learning, Artificial Intelligence, Loss Function, Neural Networks.
of (N, C), where each row represents the predicted probability distribution for a single sample, with a probability value for each class. The log function is applied element-wise to the predicted probability matrix Y_hat. The sum function is used twice to sum over both dimensions of the Y matrix.