当我尝试在Python中使用keras
时,PyCharm告诉我:
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'
有人知道为什么吗?在
这在他们的问题跟踪器上被标记为issue,这是由于{}上的版本不是最新的。
正如大多数用户建议的那样,通过克隆存储库并使用
setup.py
重新安装ano可以解决这个问题。在注:在their installation guide中也明确提到了:
当然还有其他的依赖关系。在
相关问题 更多 >
编程相关推荐