Machine learning algorithms in Theano