https://medium.com/@monocosmo77/working-with-minimax-optimal-methods-part2-machine-learning-a667e96711c4