Source: http://www.math-evry.cnrs.fr/_media/members/aguilloux/enseignements/machinelearningpython/slides.pdf