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++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -