Closed nogkaha closed 5 years ago
Upgrading keras to 2.2.4 should fix it. I just updated our requirements.txt
So I did, but then got an error when running perceptron-single-fixed.py
. I suspect the code is not compatible with the newer version of keras:
Traceback (most recent call last):
File "perceptron-single-fixed.py", line 28, in <module>
model.add(Dense(1), activation='sigmoid')
TypeError: add() got an unexpected keyword argument 'activation'
I was able to run it by changing the call to :
model.add(Dense(1))
model.add(Activation('sigmoid'))
I've tried installing the dependencies using pipenv but got some errors:
After digging it seems like tensorflow requires
keras-applications>=1.0.6
while forcingKeras==2.2.0
requireskeras-applications>=1.0.2
Maybe you could slightly change the requirements? Thanks