Machine learns by loss function. The Loss function is a method of assessing how accurately algorithm models the given data. Optimization problem use loss functions for minimizing errors. One of the most widely used losses functions is Mean Square Error (MSE) and Minimum Absolute Error (MAE). In this article, we’ll see these two loss functions in detail.