python - Keras AttributeError: 'module' object has no attribute 'relu' -


when try use keras in python, pycharm tells me:

file "d:/bitbucket/kaggle/homesite quote conversion/keras_nn_test_0.96363.py", line 167, in <module>     model.compile(loss='binary_crossentropy', optimizer="sgd") attributeerror: 'module' object has no attribute 'relu' 

does know why?

this has been marked issue on issue tracker , caused fact version on pip not date. users on there suggested, re-installing theano cloning repository , using setup.py solves issue.

p.s: explicitly mentioned in their installation guide:

note: you should use latest version of theano, not pypi version. install with:

sudo pip install git+git://github.com/theano/theano.git 

along other dependencies, of course.


Comments

Popular posts from this blog

c - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -