# Implementation of Izhikevich neuron model

**URL:** <https://brian.discourse.group/t/implementation-of-izhikevich-neuron-model/578>\
**Category:** Science, Projects, and Showcases\
**Created:** [13 January 2022 22:15 UTC](https://brian.discourse.group/t/implementation-of-izhikevich-neuron-model/578 "2022-01-13T22:15:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![adam](https://yyz2.discourse-cdn.com/free1/user_avatar/brian.discourse.group/adam/32/197_2.png) [@adam](https://brian.discourse.group/u/adam)\
**Post date:** [13 January 2022 22:26 UTC](https://brian.discourse.group/t/implementation-of-izhikevich-neuron-model/578/2 "2022-01-13T22:26:14Z")

</div>

Hi Iann.  
The short answer is both reset conditions can be expressed within an equation string:

```python
reset_eq = 'v = c; u += d;'
N = NeuronGroup(..., reset = reset_eq)

```

the long answer is there are some unclear details when it comes to implementing the Izhikevich model, you can see some recent discussion in this thread:

> [@Realization the model of network in Brain 2](https://brian.discourse.group/t/realization-the-model-of-network-in-brain-2/444/15):
>
> [Screen Shot 2022-01-13 at 11.01.10 AM] [Screen Shot 2022-01-13 at 11.01.24 AM] the above are from my run of the code presented so far, with some modified plotting. I added a 40Hz sine to compare to the gamma rhythm mentioned in the original paper: [Screen Shot 2022-01-13 at 11.03.07 AM] visually inspecting the rasters, the oscillation seems less pronounced (and less synchronous), but looking at the rates, there does appear to be a 40Hz oscillation in the inhibitory firing rate. here is my …

---

_[View the full topic](https://brian.discourse.group/t/implementation-of-izhikevich-neuron-model/578)._
