mlech26l / ncps

PyTorch and TensorFlow implementation of NCP, LTC, and CfC wired neural models
https://www.nature.com/articles/s42256-020-00237-3
Apache License 2.0
1.86k stars 297 forks source link

In file: ltc_example_sinusoidal.ipynb: error NameError: name 'wirings' is not defined #47

Closed ianni67 closed 1 year ago

ianni67 commented 1 year ago

Both on my pc and on your COLab, I get the same error when executing the Python notebook ltc_example_sinusoidal.ipynb. This is the error:

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-1-912bdff07f27> in <module>
----> 1 ncp_arch = wirings.AutoNCP(8,1)
      2 
      3 ncp_model = keras.models.Sequential(
      4     [
      5         keras.layers.InputLayer(input_shape=(None, 2)),

NameError: name 'wirings' is not defined

Can you, please, advise? Thank you very much

ianni67 commented 1 year ago

Nice joke. I just found the solution. I re-wrote the key "wirings" in the code and it worked. Don't know what kind of character was in that word but it must have been some odd one. Re-writing the word solved the issue. FIrst time I find such a weird issue.