https://medium.com/@monocosmo77/how-stochastic-gradient-descent-works-part3-machine-learning-2016625aac86