https://medium.com/@monocosmo77/working-with-empirical-risk-minimization-part2-machine-learning-7f4fc0ff7aa3