What is an optimiser and loss in Neural Network?

An optimizer basically helps to minimize the error in an error function (or loss), which helps to provide a more accurate prediction. Our goal is to use an efficient optimizer for the data to decrease the loss as much as possible.