-
Notifications
You must be signed in to change notification settings - Fork 22
Create an izhikevich Neuron #428
Comments
This should work, although I've never really used the Izhikevich neurons much. You can play around with the parameters of the neuron by passing arguments to the import nef
from ca.nengo.model.neuron.impl import IzhikevichSpikeGenerator
net = nef.Network()
ens = net.make("test", 1, 1)
for n in ens.getNodes():
n.setGenerator(IzhikevichSpikeGenerator()) |
Thank you in advance for your answer, it works. However, in interactive plot, I can only get the plot for "value" and none of the "voltage grid" , "voltage graph" , "firing rate" , "spike raster" and "tuning curves" works for that ensemble. Do you know what is the reason? |
If you add this line to your code for n in ens.getNodes():
n.setGenerator(IzhikevichSpikeGenerator())
ens.redefineNodes(ens.getNodes()) # <------ then the spike raster will work. The voltage plotting wasn't working because of a bug in the |
Hello again ,
First, I do not know why the probe doesn't show up in GUI (in a form of small triangle).
I just get an empty array. Do you have any idea what the problem is? |
The usual way to add probes is via myNetwork.simulator.addProbe("ens", "rate", True) See if that works for you. |
Hello,
I intend to create an ensemble with just 1 neuron but with izhikevich firing pattern. Could you please give me some hints?
The text was updated successfully, but these errors were encountered: