What is a loss function?
The loss function is a function used to calculate the error between the output result and the expected output result (correct answer).
In deep learning, the weight and bias parameters are adjusted so that the error obtained by the loss function is small.