Thank you, this managed to help me a lot!! I have been using the T and want to try your idea to use a normal distribution with chi-squared. I am encountering this issue where theano keeps on creating lock_dir file and stops my code from running its been a long time since I started running my code and it is still not done. Is there a way to prevent theano from creating the file?