Continuing with deeplearning.net tutorials, completed logistic SGD