Loss
YouTube search... ...Google search
There are many options for loss in Tensorflow (Keras). The actual optimized objective is the mean of the output array across all datapoints. Loss is one of the two parameters required to compile a model. here For a list of Keras loss functions.