8000 2 Factor Learning Rule doesn't handle graded spikes in the post-trace · Issue #909 · lava-nc/lava · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

2 Factor Learning Rule doesn't handle graded spikes in the post-trace #909

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

Open
pmfurlong opened this issue Mar 20, 2025 · 0 comments
Open
Labels
0-needs-review For all new issues 1-bug Something isn't working

Comments

@pmfurlong
Copy link
pmfurlong commented Mar 20, 2025

Describe the bug
When using a 2F learning rule with a neuron that produces graded spikes, the signal passed back is only ever the impulse value of the neuron and not the graded spike value. In lava/src/lava/magma/core/model/py/connection.py in the class LearningModelConnectionFloat, at approximately line 1364 in the function _process_post_spikes, the magnitude of the output value is ignored and only the impulse is added to the post trace.

This is in contrast to the function _process_pre_spikes in the same file (about line 1306), which permits adding graded spikes to the pre-trace.

To reproduce current behavior

Use the 2Factor learning rule with a neuron that produces a graded spike. Observing the eligibility trace shows that it outputs a constant value.

Expected behavior
The eligibility trace, y1, should take on the graded spike value.

Environment (please complete the following information):

  • Device:Laptop
  • OS: Linux (Ubuntu)
  • Lava version 0.9

Additional context

@pmfurlong pmfurlong added the 1-bug Something isn't working label Mar 20, 2025
@github-actions github-actions bot added the 0-needs-review For all new issues label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-needs-review For all new issues 1-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0