4. A small network and the raster plot

Lesson 4 of 8 · about 15 minutes · read Lesson 2 first · last checked November 2026

From one neuron to a network

When a neuron spikes, the spike travels along its connections to other neurons. Each connection has a weight. A positive weight pushes the target toward firing (excitatory). A negative weight pulls it away (inhibitory).

The network playground uses 50 neurons: 40 excitatory and 10 inhibitory. Each possible connection exists with a 10% chance, chosen at random but fixed by the seed. That gives each neuron about five incoming connections. There is no learning in this model.

Two rules worth noticing

Reading a raster plot

A raster plot shows time on the horizontal axis and neuron number on the vertical axis. Every dot is one spike.

Why inhibition matters

With the default settings, about 4.2% of neurons fire per step in a 1,000-step run (seed 42). Raise the excitatory weight to 0.8 and the activity runs away: about 77.4% of neurons fire per step. Inhibitory neurons help keep activity balanced. Try raising the inhibitory weight and watch the activity fall.

Exercise

Keep the defaults and change only the random seed. The wiring and the input change, but the overall firing rate should stay in a similar range. Does it? What does that tell you about the network?

Limits

This is a small random network for learning. It does not learn anything and it is not a model of a specific brain region or chip.

← Lesson 3Lesson 6: Fixed-point →