total error in machine learning