Getting started


#1

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


#2

changing tensorflow version and Edward version may be good!


#3

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


#4

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.


#5

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