Machine Learning, Data Science, Programming, Python, Statistics.
number of data points we have. Therefore, we can consider this as a mean value. Precisely, this is the half of mean squared error. The intuition behind the division by 2 will be visible when we get the derivative of the loss function. This helps us to have a more simplified derivate for the loss