Cross entropy calculator online. For this, we use a loss function.

Cross entropy calculator online. y is the ground truth and y_hat is the prediction.