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

A doubt about the snn network (on the neurodynamic explanation in the code) #13

Open
rena-zhao opened this issue Mar 6, 2020 · 2 comments

Comments

@rena-zhao
Copy link

Question:for j, x in enumerate(layer2):
active = []
if(x.t_rest<t):
x.P = x.P + np.dot(synapse[j], train[:,t])
if(x.P>par.Prest):
x.P -= par.D
active_pot[j] = x.P

   Dear researcher, bother you! 
   For the above intercepted code, I have a doubt and would like to communicate with you. 

For xP-= par.D . I still can't figure out the meaning of subtracting par.D. I checked the value of par.D, which is 0.75 in your document, and I looked up the relevant information, and I still don't know this clearly meaning.
At your convenience, would you please help me explain this problem?My email is [email protected]. Thank you very much and look forward to hearing from you!

@sujay-pandit
Copy link

Hey,
It's how the "Leaky, integrate and fire" neuron model is described. Neuron potential decays every timestep. You can refer to the following book to get a deeper understanding: "https://neuronaldynamics.epfl.ch/online/Ch5.S2.html"

@rena-zhao
Copy link
Author

Hey,
It's how the "Leaky, integrate and fire" neuron model is described. Neuron potential decays every timestep. You can refer to the following book to get a deeper understanding: "https://neuronaldynamics.epfl.ch/online/Ch5.S2.html"

A few days ago I read this book on github about the characteristics of LIF neurons, and I also know some dynamic characteristics of SRM neurons. According to my understanding, the membrane potential of neurons will be lost during excitement transmission, It is equivalent to the loss on the axon during the transmission process, but I have a problem. In the code I played in the previous question, the loss of neurons should occur after discharge, and after discharge xp-= par. D, but the code does not reflect the situation has been discharged.
What I know about that code is: just the membrane potential is greater than the resting potential, the loss occurs
if (x.p> x.rest):
........
x.p-= par.D
I feel that x.prest here and par.D minus at this time do not quite understand.

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

2 participants