-
Notifications
You must be signed in to change notification settings - Fork 31
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
Avoid infinite recursion in plot_rate_map() #95
Conversation
Oh...I love this!!!! Do you think it would be cleaner if, instead
Then you wouldn't even need a new This has the benefits that recursion can never be infinite. It is slightly different from yours though because here the recursive loop is still used exactly once for rate maps. We could either avoid this by (i) setting What do you think - you've probably thought about this a lot more than I have. |
That's even better! Because my version really prevents any contribution from recursive inputs from shaping the rate maps. I think what you're proposing looks like a clean solution! The only oddity I noticed was that So perhaps we can call it
Do you think this would work? |
I'm realizing I didn't follow the end of your comment. What if we put the default as |
My mistake, definitely should only be decremented once per loop, good spot. You made me realise there's an important distinction between recursion (
Perhaps more readable is:
Thoughts? We should also ad a comment into |
Yeah, that makes sense!
should be
Are you ok with the default being |
Sure (we can always change the default down the line if we change our mind)...but how will it be ignored? |
Yeah, my version has a bit more lines, where None is checked |
Ok, I just pushed a new version that seems to be working, on my end! Edit: Sorry for the numerous force pushes, I kept finding typos. This should work now. |
652f7c8
to
6f73978
Compare
…en evaluating get_state(), e.g., when plotting rate maps.
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.
perfect, great work!
v1.11.2 fixes this |
Enabled recurrent inputs to be identified when adding inputs to FeedForward Neurons. These inputs will be ignored when a groundtruth rate map is plotted, to avoid infinite recursion.