sum of squared errors in machine learning