What is the role of the loss function in training a neural network?
Answer options
A
To activate the neurons
B
To quantify the difference between predicted and actual
C
values
D
To define the network architecture
E
To introduce non-linearity
F
To initialize the weights
Correct answer: To quantify the difference between predicted and actual, values
Explanation
The loss function's role in training a neural network is to quantify the difference between predicted and actual values, providing the error signal used by backpropagation to update weights. Options [1] and [2] together form the complete answer: 'To quantify the difference between predicted and actual values.'