Skip to content

Getting Error: ImportError: cannot import name Graph, while training the model #12

@devendra2689

Description

@devendra2689

I am getting below error while training the model, following the given steps. Seems this code uses Graph, which is no more supported by newer version of Keras. Can you please help me to fix the problem.

devendra@krishna:~/deep-coref-master_2.7$ python run_all.py 
Using Theano backend.
Traceback (most recent call last):
  File "run_all.py", line 5, in <module>
    import clustering_learning
  File "/home/development/devendra/deep-coref-master_2.7/clustering_learning.py", line 2, in <module>
    import clustering_models
  File "/home/development/devendra/deep-coref-master_2.7/clustering_models.py", line 2, in <module>
    import pairwise_models
  File "/home/development/devendra/deep-coref-master_2.7/pairwise_models.py", line 9, in <module>
    from keras.models import Graph
ImportError: cannot import name Graph

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions