Keras: Can't import Graph

Created on 9 Dec 2016  路  2Comments  路  Source: keras-team/keras

I installed keras with pip and I'm having an issue trying to create a Graph model:

from keras.models import Sequential,Graph

ImportError: cannot import name Graph

pip version 1.5.4
python version 2.7

Most helpful comment

Would be nice if the doc was updated then.

https://keras.io/layers/containers/ is not true anymore, leading me to search the Graph class with obviously no success. Even the commit removing the Graph class doesn't say anything about it.

All 2 comments

Graph has been removed. Use the functional API (see docs).

Would be nice if the doc was updated then.

https://keras.io/layers/containers/ is not true anymore, leading me to search the Graph class with obviously no success. Even the commit removing the Graph class doesn't say anything about it.

Was this page helpful?
0 / 5 - 0 ratings