0

I want to install keras module (github-link). I tried pip install keras.It installed 1.2.1. It does not have Graph module as per this. Sadly the documentation is also is not updated. So I tried a previous version 1.1.2.and as per the answer by Chang Liu given here ran sudo python setup.py install but now I am getting following error

 ImportError: No module named numpy.distutils.core'

I have already installed anaconda and during its installation it correctly installed numpy as well.Another thing that I tried was import keras.layer.container as according to documentation there is class Graph() present in container.Please let me know what should I do?

Community
  • 1
  • 1
Paul Schimmer
  • 161
  • 3
  • 22

1 Answers1

-1

As the author from the Issue mentioned here

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

The Keras functional API is the way to go for defining complex models, such as multi-output models, directed acyclic graphs, or models with shared layers.

more clarification:

  1. This error could be due to the dependency installations, make sure numpy and scikit-learn are not having issues during the process.

  2. Perhaps due a fresh install of the conda if this is still an issue.

and for the Graph, the first answer still stands, it has been removed.

0bserver07
  • 3,390
  • 1
  • 28
  • 56