Visualizing the Stochastic Gradient Descent We use here a 1D linear model to visualize the SGD algorithm in its variants Batch SGD (GD), Minibatch SGD and vanilla SGD.