Cost (Loss) Function in Machine Learning