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

Tutorial 4: snn.Synaptic not working correctly #358

Open
AshBastian opened this issue Jan 15, 2025 · 0 comments
Open

Tutorial 4: snn.Synaptic not working correctly #358

AshBastian opened this issue Jan 15, 2025 · 0 comments

Comments

@AshBastian
Copy link

  • snntorch version: 0.9.1
  • Python version: 3.10.12
  • Operating System: Probably Linux, sie it is Google Colab

Description

While working through the tutorial, I tried to run the cell where the snn.Synatic LIF Neuron is used. The cell itself works, but the plot shows, that the Neuron isn't doing, what it should do. The reset_mechanism needs to be set to "zero" and the threshold needs to be lowered, that the LIF Neuron at least uses any reset. With the default, the reset isn't working at all and the neuron just fires every timestep. Also the current isn't decaying over time.

In the following picture is visible what I mean.
lif1 = snn.Synaptic(alpha=alpha, beta=beta)
Screenshot from 2025-01-15 14-32-02

lif1 = snn.Synaptic(alpha=alpha, beta=beta, reset_mechanism="zero")
Screenshot from 2025-01-15 14-35-24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant