Bipolar
BipolarLayer
Bases: LayerBase
__init__(excitatory, alpha=(0.05, 0.25), *args, **kwargs)
A layer of bipolar cells. This layer processes the signal form the receptor layer modulated by the horizontal layer.
forward(raw, feedback, dt=None)
The bipolar layer splits the input into ON and OFF pathways.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
raw
|
ndarray
|
The raw input signal from the receptor layer. |
required |
feedback
|
ndarray
|
The feedback signal from the horizontal layer. |
required |
dt
|
float | None
|
(Optional) time since the last input. |
None
|
Returns:
| Type | Description |
|---|---|
ndarray
|
An array with the membrane potentials of the bipolar cells. |
visualise_activations(on=True, off=True)
Visualise the activations of ON and OFF bipolar cells.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
on
|
bool
|
If set, visualise ON cell activations. |
True
|
off
|
bool
|
If set, visualise ON cell activations. |
True
|
Returns:
| Type | Description |
|---|---|
figure
|
A Bokeh figure. |