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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

android - Keyboard hides my half of edit-text and button below it even in scroll view -