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

Regarding the relationship between decay and reset in neuron behavior #364

Open
darprin opened this issue Feb 12, 2025 · 0 comments
Open

Comments

@darprin
Copy link

darprin commented Feb 12, 2025

Considering the original behavior of a neuron,
Shouldn't the membrane potential decay after a reset?

To maintain the existing code as much as possible,
the issue can be fixed as follows.

Original:

def base_sub(self, input):
return self.base_state_function(input) - self.reset * self.threshold

Modified:

def base_sub(self, input):
return self.base_state_function(input) - self.beta.clamp(0, 1) * self.reset * self.threshold

@darprin darprin changed the title Bugs on snn.Leaky class A bug on snn.Leaky class Feb 12, 2025
@darprin darprin changed the title A bug on snn.Leaky class Regarding the relationship between decay and reset in neuron behavior Feb 13, 2025
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