Importance of Loss Function in Machine Learning