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

Revisit PES error magnitude expectations #14

Closed
tbekolay opened this issue Aug 20, 2018 · 3 comments
Closed

Revisit PES error magnitude expectations #14

tbekolay opened this issue Aug 20, 2018 · 3 comments

Comments

@tbekolay
Copy link
Member

At https://github.com/nengo/nengo-loihi/blob/master/nengo_loihi/simulator.py#L498 it seems as though we are getting the error from the host, doing x = int(100 * x), and then sending it to the chip. There's a comment in that block of code saying >128 is an issue on chip; @drasmuss noted:

The comment says 128 but the code uses 100? Also is this assuming that errors will be <= 1, or is that handled elsewhere somehow?

If we are making an assumption about error magnitudes, we should be explicit about it. In my experience, error values are very rarely going to be this high, so we might get better performance by looking at a tighter range of error values (say from -0.2 to 0.2).

@drasmuss
Copy link
Member

#139 added a configurable pes_error_scale parameter which can be used to adjust this. Do you think that's enough to consider this resolved?

@hunse
Copy link
Collaborator

hunse commented Jan 31, 2019

The only open question for me would be default values. If error does in fact typically go between -0.2 and 0.2, then we'd want a larger default for pes_error_scale. But I think this is fairly problem dependent. For example, we had to scale it down for the adaptive control example, since that used larger errors: 32f8bd6. I think that 100 is a good default, since if the range of errors is smaller, then it'll still work (just with slightly worse resolution).

@drasmuss
Copy link
Member

Yeah, assuming that errors are +/-1, with the .28 fudge factor added, seems like an unsurprising default at least, even if it may not be optimal.

@drasmuss drasmuss closed this as completed Apr 5, 2019
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

3 participants