Dynamics of stochastic gradient descent for two-layer neural networks in the teacher–student setup*This article is an updated version of: Goldt S, Advani M S, Saxe A M, Krzakala F and Zdeborova L 2019 Dynamics of stochastic gradient descent for two-layer neural networks in the teacher-student setup Advances in Neural Information Processing Systems pp 6981–91. (16th December 2020)