-
Notifications
You must be signed in to change notification settings - Fork 174
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
Added 'NoSolver' solver #1352
Added 'NoSolver' solver #1352
Conversation
I'm wondering if we want to add warnings on high values too maybe? |
Yay! I've needed this before, as has @psipeter. But, I am wondering about the name Might I suggest a name like Also, note that the variable [1] Seeler, K.A. System Dynamics: An Introduction for Mechanical Engineers. Springer New York, 2014. |
At the risk of bike-shedding, how about |
I think I like
We don't have access to
This is a tricky one I think... if we are using |
This is a hard one to name for sure... one other possibility to throw out there is nengo.Connection(pre, post, solver=InitialWeights(myweights))
nengo.Connection(pre, post, solver=NoSolver(myweights)) I also think
I think the comment about immutability can be easily resolved by returning all zeros without setting |
That commit addresses a couple points, I think we still need to talk about error checking here though. if there is a shape mismatch the current error is not very obvious:
To reiterate again what @arvoelke brought up, we might want to at least warn if the same solver instance is used multiple times? |
Your changes at a glance look to fix this now, so a warning shouldn't be necessary. A legitimate use-case would be using the config system to set initial weights to zero for each ensemble in an |
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.
Looks good to me! I made a few minor changes, added the solver to the documentation, and added a changelog entry in some new commits.
5f90768
to
3abb330
Compare
Used to manually pass in weights. Useful as an alternative to passing in a transform.
3abb330
to
1262b8c
Compare
Motivation and context:
It has come up a few times that it would be nice to set decoders or weights directly. More specifically, loading from previous runs as mentioned in #649, #608. This doesn't facilitate saving and loading per se, but does allow the user to set decoders or weights even if they do not have access to
pre.neurons
. This can be used to help load and save decoders or weights as outlined in nengo/nengo-extras#35.How has this been tested?
Added a new test, all current tests passed.
How long should this take to review?
Where should a reviewer start?
Just look at the commit.
Types of changes:
Checklist:
Still to do:
values
to give better error messages for shape mismatch