SGD Momentum Dampening Nesterov ADAGrad RMS prop Adam For visualization, I want to write the history to a file then visualize it using Python