Pooling
Pooling(
pre,
post,
target,
psp='pre.r',
operation='max',
name=None,
copied=False,
net_id=0,
)Performs a pooling operation (e.g. max.pooling) on the pre-synaptic population.
Each post-synaptic neuron covers a specific region (extent) of the pre-synaptic population, over which the result of the operation on firing rates will be assigned to sum(target).
The extent is automatically computed using the geometry of the populations, but can be specified in the `pooling()`` methods.
Example:
import ANNarchy as ann
from ANNarchy.extensions.convolution import Pooling
net = ann.Network()
inp = net.create(geometry=(100, 100), neuron=ann.Neuron(parameters="r = 0.0"))
pop = net.create(geometry=(50, 50), neuron=ann.Neuron(equations="r = sum(exc)"))
proj = net.connect(Pooling(inp, pop, 'exc', operation='max')) # max-pooling
proj.pooling() # extent=(2, 2) is implicitParameters
| Name | Type | Description | Default |
|---|---|---|---|
| pre | pre-synaptic population (either its name or a Population object). |
required | |
| post | post-synaptic population (either its name or a Population object). |
required | |
| target | type of the connection | required | |
| operation | pooling function to be applied (“max”, “min”, “mean”) | 'max' |
Methods
| Name | Description |
|---|---|
| pooling | Connects the Pooling projection. |
| save_connectivity | Not available. |
| save | Not available. |
| load | Not available. |
| receptive_fields | Not available. |
| connectivity_matrix | Not available. |
pooling
pooling(extent=None, delays=0.0)Connects the Pooling projection.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| extent | tuple | extent of the pooling area expressed in the geometry of the pre-synaptic population (e.g (2, 2)). In each dimension, the product of this extent with the number of neurons in the post-synaptic population must be equal to the number of pre-synaptic neurons. Default: None. |
None |
| delays | float | synaptic delay in ms | 0.0 |
save_connectivity
save_connectivity(filename)Not available.
save
save(filename)Not available.
load
load(filename)Not available.
receptive_fields
receptive_fields(variable='w', in_post_geometry=True)Not available.
connectivity_matrix
connectivity_matrix(fill=0.0)Not available.