Getting started

Hi all
I am having problems with the example code from http://edwardlib.org/getting-started.

The code runs to the line:

inference.run(n_samples=5, 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.

R

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

R

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.

I cannot find the tensorflow 1.6. the only available versions are :
Could not find a version that satisfies the requirement tensorflow==1.6 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1
.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1
.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0)
ERROR: No matching distribution found for tensorflow==1.6