Error Functions In Machine Learning