Logistic regression implemented with Theano and working