-
Notifications
You must be signed in to change notification settings - Fork 11
Seeds match Nengo #70
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
Conversation
|
This branch is off of #71, but the functionality doesn't depend on it. It was just in trying to get that stuff working that I stumbled upon this problem, so I was using it as a test case. So just look at the last commit when reviewing this. |
|
Rebased this to master |
|
Rebased this to #142, so that it can work with current Nengo. |
|
This requires nengo/nengo#1501 to work. |
drasmuss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some minor fixups, looks good to me
| probe = nengo.Probe(output, synapse=0.1) | ||
|
|
||
| simtime = 0.5 | ||
| simtime = 0.6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test was failing, but I'm pretty sure it was just because the seed changed (running it various times with different seeds it would sometimes randomly fail). Increasing the time made it pass reliably.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If switching to 0.6 makes it work for a wider range of seeds, probably worth the change, then. Maybe we can add a short statement in the commit message saying this?
As I mentioned below, the randomness of this test is also fixed in #140, so between the two changes, should be solid!
|
First fixup looks good to me. I added some comments just to make it clear that there's two sections to the test. I'm curious why the second fixup is necessary. If it's because that test was failing, it just fails randomly. It's fixed in #140. |
This is true for the host, host_pre, and chip networks.
This ensures that all object seeds are the same as for the corresponding reference Nengo model. It also ensures that seeds for all objects are set and the same whether precompute is True or False.
Depends on nengo/nengo#1476.
Computing the seeds before building, as I'm doing here, is something we've talked about adding to Nengo for a while. I would be open/happy to take the functionality here and move it to Nengo instead, since I think that is ultimately where we want it.