# brainpy.neurons.Izhikevich#

class brainpy.neurons.Izhikevich(size, a=0.02, b=0.2, c=-65.0, d=8.0, V_th=30.0, tau_ref=None, V_initializer=None, u_initializer=None, noise=None, method='exp_auto', mode=None, spike_fun=<brainpy._src.math.surrogate._utils.VJPCustom object>, keep_size=False, input_var=True, ref_var=False, name=None)[source]#

The Izhikevich neuron model.

Model Descriptions

The dynamics of the Izhikevich neuron model   is given by:

\begin{align}\begin{aligned}\frac{d V}{d t} &= 0.04 V^{2}+5 V+140-u+I\\\frac{d u}{d t} &=a(b V-u)\end{aligned}\end{align}
$\begin{split}\text{if} v \geq 30 \text{mV}, \text{then} \begin{cases} v \leftarrow c \\ u \leftarrow u+d \end{cases}\end{split}$

Model Examples

Model Parameters

 Parameter Init Value Unit Explanation a 0.02 It determines the time scale of the recovery variable $$u$$. b 0.2 It describes the sensitivity of the recovery variable $$u$$ to the sub-threshold fluctuations of the membrane potential $$v$$. c -65 It describes the after-spike reset value of the membrane potential $$v$$ caused by the fast high-threshold $$K^{+}$$ conductance. d 8 It describes after-spike reset of the recovery variable $$u$$ caused by slow high-threshold $$Na^{+}$$ and $$K^{+}$$ conductance. tau_ref 0 ms Refractory period length. [ms] V_th 30 mV The membrane potential threshold.

Model Variables

 Variables name Initial Value Explanation V -65 Membrane potential. u 1 Recovery variable. input 0 External and synaptic input current. spike False Flag to mark whether the neuron is spiking. refractory False Flag to mark whether the neuron is in refractory period. t_last_spike -1e7 Last spike time stamp.

References

__init__(size, a=0.02, b=0.2, c=-65.0, d=8.0, V_th=30.0, tau_ref=None, V_initializer=None, u_initializer=None, noise=None, method='exp_auto', mode=None, spike_fun=<brainpy._src.math.surrogate._utils.VJPCustom object>, keep_size=False, input_var=True, ref_var=False, name=None)[source]#

Methods

 __init__(size[, a, b, c, d, V_th, tau_ref, ...]) clear_input() Function to clear inputs in the neuron group. cpu() Move all variable into the CPU device. cuda() Move all variables into the GPU device. dV(V, t, u, I_ext) du(u, t, V) get_batch_shape([batch_size]) get_delay_data(identifier, delay_step, *indices) Get delay data according to the provided delay steps. load_state_dict(state_dict[, warn, compatible]) Copy parameters and buffers from state_dict into this module and its descendants. load_states(filename[, verbose]) Load the model states. nodes([method, level, include_self]) Collect all children nodes. register_delay(identifier, delay_step, ...) Register delay variable. register_implicit_nodes(*nodes[, node_cls]) register_implicit_vars(*variables[, var_cls]) reset(*args, **kwargs) Reset function which reset the whole variables in the model. reset_local_delays([nodes]) Reset local delay variables. reset_state([batch_size]) Reset function which reset the states in the model. save_states(filename[, variables]) Save the model states. state_dict() Returns a dictionary containing a whole state of the module. to(device) Moves all variables into the given device. tpu() Move all variables into the TPU device. train_vars([method, level, include_self]) The shortcut for retrieving all trainable variables. tree_flatten() Flattens the object as a PyTree. tree_unflatten(aux, dynamic_values) Unflatten the data to construct an object of this class. unique_name([name, type_]) Get the unique name for this object. update([x]) The function to specify the updating rule. update_local_delays([nodes]) Update local delay variables. vars([method, level, include_self, ...]) Collect all variables in this node and the children nodes.

Attributes

 global_delay_data Global delay data, which stores the delay variables and corresponding delay targets. mode Mode of the model, which is useful to control the multiple behaviors of the model. name Name of the model. pass_shared varshape The shape of variables in the neuron group.