Dendrite
core.Dendrite.Dendrite(self, proj, post_rank, idx)A Dendrite is a sub-group of a Projection, gathering the synapses between the pre-synaptic population and a single post-synaptic neuron.
It can not be created directly, only through a call to Projection.dendrite(rank):
dendrite = proj.dendrite(6)Attributes
| Name | Description |
|---|---|
| post_rank | Rank of the post-synaptic neuron. |
| pre_ranks | List of ranks of pre-synaptic neurons. |
| proj | Parent projection. |
| size | Number of synapses. |
| synapses | Iteratively returns the synapses corresponding to this dendrite. |
Methods
| Name | Description |
|---|---|
| create_synapse | Creates a synapse for this dendrite with the given pre-synaptic neuron. |
| create_synapses | Creates a synapse for this dendrite with the given pre-synaptic neurons. |
| get | Returns the value of a variable/parameter. |
| prune_synapse | Removes the synapse with the given pre-synaptic neuron from the dendrite. |
| prune_synapses | Removes the synapses which belong to the provided pre-synaptic neurons from the dendrite. |
| receptive_field | Returns the given variable as a receptive field. |
| set | Sets the value of a parameter/variable of all synapses. |
| synapse | Returns the synapse coming from the corresponding presynaptic neuron. |
create_synapse
core.Dendrite.Dendrite.create_synapse(rank, w=0.0, delay=0)Creates a synapse for this dendrite with the given pre-synaptic neuron.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| rank | int | rank of the pre-synaptic neuron | required |
| w | float | synaptic weight. | 0.0 |
| delay | float | synaptic delay. | 0 |
create_synapses
core.Dendrite.Dendrite.create_synapses(ranks, weights=None, delays=None)Creates a synapse for this dendrite with the given pre-synaptic neurons.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ranks | list[int] | list of ranks of the pre-synaptic neurons. | required |
| weights | list[float] | list of synaptic weights (default: 0.0). | None |
| delays | list[float] | list of synaptic delays (default = dt). | None |
get
core.Dendrite.Dendrite.get(name)Returns the value of a variable/parameter.
Example:
dendrite.get('w')Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| name | str | name of the parameter/variable. | required |
Returns
| Name | Type | Description |
|---|---|---|
| float | a single value. |
prune_synapse
core.Dendrite.Dendrite.prune_synapse(rank)Removes the synapse with the given pre-synaptic neuron from the dendrite.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| rank | int | rank of the pre-synaptic neuron | required |
prune_synapses
core.Dendrite.Dendrite.prune_synapses(ranks)Removes the synapses which belong to the provided pre-synaptic neurons from the dendrite.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ranks | list[int] | list of ranks of the pre-synaptic neurons. | required |
receptive_field
core.Dendrite.Dendrite.receptive_field(variable='w', fill=0.0)Returns the given variable as a receptive field.
A Numpy array of the same geometry as the pre-synaptic population is returned. Non-existing synapses are replaced by zeros (or the value fill).
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| variable | str | name of the variable (default = ‘w’) | 'w' |
| fill | float | value to use when a synapse does not exist (default: 0.0). | 0.0 |
Returns
| Name | Type | Description |
|---|---|---|
| np.array | an array. |
set
core.Dendrite.Dendrite.set(value)Sets the value of a parameter/variable of all synapses.
Example:
dendrite.set( { 'tau' : 20, 'w'= Uniform(0.0, 1.0) } )Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| value | dict | a dictionary containing the parameter/variable names as keys. | required |
synapse
core.Dendrite.Dendrite.synapse(pos)Returns the synapse coming from the corresponding presynaptic neuron.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| pos | int | tuple[int] | can be either the rank or the coordinates of the presynaptic neuron | required |
Returns
| Name | Type | Description |
|---|---|---|
| IndividualSynapse | IndividualSynapse wrapper instance. |