Translated theano logistic sgd

I’ve started translating the theano deeplearning tutorials from theano/python to python/numpy. This was mostly to validate my understanding but also help me learn theano.

I’m going to continue translating these, hopefully it is useful to someone.

Translated from: http://deeplearning.net/tutorial/logreg.html

Code:https://github.com/aelaguiz/DeepLearningTutorials

I’ve got some simple benchmarks too. Theano is fast!

My version:

Optimization complete with best validation score of 7.479167 %,with test performance 7.489583 %

The code run for 75 epochs, with 1.674691 epochs/sec

The code for file logistic_sgd.py ran for 44.8s

real 0m29.138s

user 0m45.541s

sys 0m2.177s

Theano version:

Optimization complete with best validation score of 7.479167 %,with test performance 7.489583 %

The code run for 75 epochs, with 6.469746 epochs/sec

The code for file logistic_sgd.py ran for 11.6s

real 0m9.328s

user 0m14.780s

sys 0m1.116s