Creating
self, equation, proba=1.0, w=0.0, d=None) Creating(
Dataclass to represent a creation condition for structural plasticity.
When the condition is true, a synapse is created with the specified probability, using the weight w and delay d.
= ann.Synapse(
CreatingSynapse
= dict(eta = 0.1, T = 1.0),
parameters
= ann.Variable("dw/dt = eta * pre.r * post.r"),
equations
= ann.Creating("pre.r * post.r > T", proba = 0.1, w = 0.01),
creating )
Parameters
Name | Type | Description | Default |
---|---|---|---|
equation | str | string representing the equation. | required |
proba | float | probability of creation of the synapse. | 1.0 |
w | float | weight when the synapse is created. | 0.0 |
d | float | delay when the synapse is created. | None |