-
Notifications
You must be signed in to change notification settings - Fork 150
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
Fix: subthreshold dynamics equation of refractory lif #842
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12fcbcb
to
89c2764
Compare
Hi, just to support this, in the Brian2Lava project we have used the same fix and it works well. |
89c2764
to
765ede9
Compare
765ede9
to
49c76b2
Compare
PhilippPlank
approved these changes
Apr 25, 2024
a933bc0
to
1904854
Compare
1904854
to
7bb6386
Compare
7bb6386
to
727c3c0
Compare
tim-shea
approved these changes
Jun 20, 2024
epaxon
pushed a commit
that referenced
this pull request
Jun 20, 2024
* Fix: subthreshold dynamics equation of refractory lif * Fix: RefractoryLIF unit test to test the voltage dynamics
monkin77
added a commit
to monkin77/thesis-lava
that referenced
this pull request
Jul 12, 2024
* Fix: subthreshold dynamics equation of refractory lif * Fix: RefractoryLIF unit test to test the voltage dynamics
mgkwill
added a commit
that referenced
this pull request
Aug 5, 2024
* GradedReluVec process and tests. * changed test to use thresh not 0. * removed duplicate docstring line. * Bump tornado from 6.4 to 6.4.1 (#863) Bumps [tornado](https://github.com/tornadoweb/tornado) from 6.4 to 6.4.1. - [Changelog](https://github.com/tornadoweb/tornado/blob/master/docs/releases.rst) - [Commits](tornadoweb/tornado@v6.4.0...v6.4.1) --- updated-dependencies: - dependency-name: tornado dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix: subthreshold dynamics equation of refractory lif (#842) * Fix: subthreshold dynamics equation of refractory lif * Fix: RefractoryLIF unit test to test the voltage dynamics * Bump urllib3 from 2.2.1 to 2.2.2 (#865) Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](urllib3/urllib3@2.2.1...2.2.2) --- updated-dependencies: - dependency-name: urllib3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: PhilippPlank <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: João Gil <[email protected]> Co-authored-by: PhilippPlank <[email protected]> Co-authored-by: Marcus G K Williams <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue Number: #841
Objective of pull request: Fix the
PyLifRefractoryModelFloat
voltage dynamics.Pull request checklist
Your PR fulfills the following requirements:
flakeheaven lint src/lava tests/
) and (bandit -r src/lava/.
) pass locallypytest
) passes locallyPull request type
Please check your PR type:
What is the current behavior?
PyLifRefractoryModelFloat
model does not update the voltage correctly in its sub-threshold dynamics. The current equation is:Therefore, the voltage of the neurons is updated incorrectly.
What is the new behavior?
so the new behavior uses this new equation.
Does this introduce a breaking change?
Supplemental information
The unit test related to the Refractory model confirmed that the voltage remains at 0 during the refractory state. However, the expected voltage array is incorrect, so it was also modified.
Closes #841