Question: What is the role of the optimizer in training a neural network?
Options:
Correct Answer: To adjust the weights based on the loss function
Solution:
The optimizer adjusts the weights of the network based on the gradients calculated from the loss function.