Machine Learning, Artificial Intelligence, Today I Learned.
suitable because it may lead to negative values and fails to capture the idea of Cartesian “distance” (which would cause our final cost to be inaccurate). A valid solution would be wrapping an absolute value over our subtraction expression. Another approach is to square the expression. The latter