Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

πŸ’» Code for figures

Download the notebook Open in Colab

The code below generates the figures used in the notebooks, and might be useful to explore these ideas further.

Neuron modelsΒΆ

It makes use of the Brian spiking neural network simulator package. Feel free to have a play with this and explore its documentation, including excellent tutorials.

β€œBiological” neuronsΒΆ

This is just a Hodgkin-Huxley neuron modified to include exponential current synapses (as we do later for the integrate-and-fire neuron).

<Figure size 1000x600 with 1 Axes>

Version for websiteΒΆ

<Figure size 1000x600 with 1 Axes>

Integrate and fire neuronΒΆ

<Figure size 800x300 with 1 Axes>

Leaky integrate and fire neuronΒΆ

<Figure size 800x300 with 1 Axes>

Reliable spike timingΒΆ

This is the figure we want to reproduce from Mainen and Sejnowski (1995).

And here’s some Brian code that does the same thing with a leaky integrate and fire neuron.

<Figure size 1000x600 with 6 Axes>

And same with a non-leaky integrate-and-fire neuron.

<Figure size 1000x600 with 6 Axes>

LIF with synapsesΒΆ

<Figure size 600x900 with 2 Axes>

Adaptive threshold LIF neuronΒΆ

<Figure size 800x400 with 2 Axes>

Hodgkin-Huxley neuronΒΆ

<Figure size 400x300 with 1 Axes>