KordingLab / Neural_Decoding

A python package that includes many methods for decoding neural activity
BSD 3-Clause "New" or "Revised" License
429 stars 119 forks source link

TypeError: ('Keyword argument not understood:', 'dropout_W') in SimpleRNN function #12

Closed HuaizhenC closed 4 years ago

HuaizhenC commented 4 years ago

Hi I run the my_RNN_classifier.fit function in the central_concepts_in_ML_for_decoding.ipynb I installed the Keras package version 2.3.0-tf, in which there is no dropout_W argument in the SimpleRNN function, would you mind telling which versions of keras and tensorflow I need to install to run this code, and are you gonna to update the code to be compatible to the more updated Keras and tensorflow versions?
Thanks!

jglaser2 commented 4 years ago

Hi, this worked as recently as Keras version 2.2.4.

If you don't want to install this older version, within the decoders.py file, you can change "dropout_W" to "dropout" and "dropout_U" to "recurrent_dropout".

I do plan on updating the code to make it compatible with updated versions, but this won't happen for at least a few days.

jglaser2 commented 4 years ago

The code has been updated to be compatible with the updated Keras/TF version.