Pymc3 getting stuck after initialization

The documentation says that you can specify the mode, which is part of theano.config, in one of three ways:

The order of precedence is:

  1. an assignment to theano.config.<property>
  2. an assignment in THEANO_FLAGS
  3. an assignment in the .theanorc file (or the file indicated in THEANORC )

To do the first method, in your script (or notebook) you have to do:

... # The imports

import theano
theano.config.mode = 'FAST_COMPILE'

... # The rest of your model and sampling code

The second method requires you to set environment variables on windows.

The third method involves writing custom options in the .theanorc hidden file.