Code for comparing averaged implicit stochastic gradient descent (AI-SGD) to other methods.