Keras: ImportError: cannot import name 'initializations'

Created on 17 Apr 2017  Â·  4Comments  Â·  Source: keras-team/keras

Please make sure that the boxes below are checked before you submit your issue. If your issue is an implementation question, please ask your question on StackOverflow or join the Keras Slack channel and ask there instead of filing a GitHub issue.

Thank you!

  • [x] Check that you are up-to-date with the master branch of Keras. You can update with:
    pip install git+git://github.com/fchollet/keras.git --upgrade --no-deps

  • [ ] If running on TensorFlow, check that you are up-to-date with the latest version. The installation instructions can be found here.

  • [ ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:
    pip install git+git://github.com/Theano/Theano.git --upgrade --no-deps

  • [ ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short).

Most helpful comment

In Keras 2.0, initializations was renamed as initializers. You should therefore instead write

from keras import initializers

All 4 comments

In Keras 2.0, initializations was renamed as initializers. You should therefore instead write

from keras import initializers

In Keras 2.0, initializations was renamed as initializers. You should therefore instead write

from keras import initializers

At 2017-04-23 11:40:24, "Franck Dernoncourt" notifications@github.com wrote:

I have the same issue. My environment: tensorflow==1.1.0; Keras==2.0.3; Python 2.7.12; Ubuntu 16.04 LTS x64.

Running from keras import initializations in the python interpreter triggers the issue:

from keras import initializations
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name initializations

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

In Keras 2.0, initializations was renamed as initializers. You should therefore instead write

from keras import initializers

It worked for me !

In Keras 2.0, initializations was renamed as initializers. You should therefore instead write

from keras import initializers

It worked for me !

It works for me, too!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nryant picture nryant  Â·  3Comments

oweingrod picture oweingrod  Â·  3Comments

Imorton-zd picture Imorton-zd  Â·  3Comments

amityaffliction picture amityaffliction  Â·  3Comments

fredtcaroli picture fredtcaroli  Â·  3Comments