Stochastic Gradient Descent Python Coder