Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spiking-mnist.ipynb: TypeError: loss() missing 1 required positional argument: 'targets' #70

Closed
joh10891 opened this issue Nov 15, 2018 · 2 comments

Comments

@joh10891
Copy link

When attempting to run spiking-mnist.ipynb exactly as written in the example, I get
TypeError: loss() missing 1 required positional argument: 'targets'

Any ideas what may be causing this, or possible solutions?

@drasmuss
Copy link
Member

Your version of NengoDL does not match the example, so two possibilities:

  1. You can use an earlier version of the example, corresponding to your installed NengoDL version (e.g., if you have the latest PyPI release it's this version). There's a version dropdown in the bottom left that you can change to view the example for any previous NengoDL release.

  2. You can do a developer installation to get the most up-to-date version of NengoDL, which will match the most up-to-date example in the documentation.

Either one should work for you, let me know if you run into any problems. We'll be doing a new release soon to bring the PyPI version up-to-date, I've just been delaying it a bit because it's a larger update that I want to be sure is battle tested.

@joh10891
Copy link
Author

Fantastic, both methods seemed to work for me. I appreciate the quick reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants