added fit function to theano log regression and updated the example