In deep learning, optimisers are used to determine how each parameter (i.e., the weights) in a model should change based on the value of the loss function.
Many common NN optimisers are based on gradient descent.
Types
In code
During model training, we should define our optimiser:
PyTorch has several optimiser functions contained within the torch.optim
subclass.