Getting started


Hi all
I am having problems with the example code from

The code runs to the line:, n_iter=250)_

where it stops with the error:

IndexError: list index out of range

Can anyone indicate what I am doing wrong?

Many thanks in advance.



changing tensorflow version and Edward version may be good!


Thanks for your comment liuchenbaidu.

I did a complete reinstall of Tensorflow and Edward, the program now fails on the line:

from edward.models import Normal

and throws the following error :

ImportError: cannot import name ‘set_shapes_for_outputs’

Any suggestions as to what might be happening here?

Many thanks



I reverted to Tensorflow 1.7.0 version (from 1.10.0) and now Edward and Tensorflow seem to work without errors.

Thanks for your attention.


tensorflow 1.60.and edward1.3.5 ,try it again.