Yes you can get the logpt from model, which is a theano tensor. To evaluate the tensor you can compile it as a function, eg see: