結果 : what is the primary purpose of a loss function in training neural networks