Another thing is how does the loss function for classification know which class to compare to the label in classification?