Skip to content

Ganglion

GanglionLayer

Bases: LayerBase

A layer of ganglion cells receiving excitatory input from bipolar cells and inhibitory input from amacrine cells.

__init__(center, surround, tau=5.0, threshold=0.001, inhibition_strength=1.25, *args, **kwargs)

Ganglion layer with center-surround receptive fields.

Args:

center: The center receptive fields providing excitatory input to the ganglion cells.
surround: The surround receptive fields providing inhibitory input to the ganglion cells.
tau: Membrane time constant.
threshold: Spiking threshold.
inhibition_strength: Strength of the inhibitory signal relative to the excitatory one.

forward(center, surround, dt=None)

Compute the activation of center/surround RGCs.

This is where spikes are produced.

Parameters:

Name Type Description Default
center ndarray

Excitatory input to the center.

required
surround ndarray

Inhibitory input to the surround.

required
dt float | None

Indicates the time since the last input in the case of temporal integration.

None

Returns:

Type Description
ndarray

A spike array.

visualise_spikes()

Visualise the activations of amacrine cells.

Returns:

Type Description
figure

A Bokeh figure.