A loss function (or objective function), specified when you compile the model, is the function that the model intends to optimize in the process of training.

See here for available loss objects.

For the sake of convenience, you can also use the corresponding string representation of a loss.

Available Losses