Layer of simplified spike response model (SRM0) neurons with stochastic threshold (escape noise). Adapted from `(Vasilaki et al., 2009) `_.
| 1553 | |
| 1554 | |
| 1555 | class SRM0Nodes(Nodes): |
| 1556 | # language=rst |
| 1557 | """ |
| 1558 | Layer of simplified spike response model (SRM0) neurons with stochastic threshold (escape noise). Adapted from |
| 1559 | `(Vasilaki et al., 2009) <https://intranet.physio.unibe.ch/Publikationen/Dokumente/Vasilaki2009PloSComputBio_1.pdf>`_. |
| 1560 | """ |
| 1561 | |
| 1562 | def __init__( |
| 1563 | self, |
| 1564 | n: Optional[int] = None, |
| 1565 | shape: Optional[Iterable[int]] = None, |
| 1566 | traces: bool = False, |
| 1567 | traces_additive: bool = False, |
| 1568 | tc_trace: Union[float, torch.Tensor] = 20.0, |
| 1569 | trace_scale: Union[float, torch.Tensor] = 1.0, |
| 1570 | sum_input: bool = False, |
| 1571 | thresh: Union[float, torch.Tensor] = -50.0, |
| 1572 | rest: Union[float, torch.Tensor] = -70.0, |
| 1573 | reset: Union[float, torch.Tensor] = -70.0, |
| 1574 | refrac: Union[int, torch.Tensor] = 5, |
| 1575 | tc_decay: Union[float, torch.Tensor] = 10.0, |
| 1576 | lbound: float = None, |
| 1577 | eps_0: Union[float, torch.Tensor] = 1.0, |
| 1578 | rho_0: Union[float, torch.Tensor] = 1.0, |
| 1579 | d_thresh: Union[float, torch.Tensor] = 5.0, |
| 1580 | **kwargs, |
| 1581 | ) -> None: |
| 1582 | # language=rst |
| 1583 | """ |
| 1584 | Instantiates a layer of SRM0 neurons. |
| 1585 | |
| 1586 | :param n: The number of neurons in the layer. |
| 1587 | :param shape: The dimensionality of the layer. |
| 1588 | :param traces: Whether to record spike traces. |
| 1589 | :param traces_additive: Whether to record spike traces additively. |
| 1590 | :param tc_trace: Time constant of spike trace decay. |
| 1591 | :param trace_scale: Scaling factor for spike trace. |
| 1592 | :param sum_input: Whether to sum all inputs. |
| 1593 | :param thresh: Spike threshold voltage. |
| 1594 | :param rest: Resting membrane voltage. |
| 1595 | :param reset: Post-spike reset voltage. |
| 1596 | :param refrac: Refractory (non-firing) period of the neuron. |
| 1597 | :param tc_decay: Time constant of neuron voltage decay. |
| 1598 | :param lbound: Lower bound of the voltage. |
| 1599 | :param eps_0: Scaling factor for pre-synaptic spike contributions. |
| 1600 | :param rho_0: Stochastic intensity at threshold. |
| 1601 | :param d_thresh: Width of the threshold region. |
| 1602 | """ |
| 1603 | super().__init__( |
| 1604 | n=n, |
| 1605 | shape=shape, |
| 1606 | traces=traces, |
| 1607 | traces_additive=traces_additive, |
| 1608 | tc_trace=tc_trace, |
| 1609 | trace_scale=trace_scale, |
| 1610 | sum_input=sum_input, |
| 1611 | ) |
| 1612 |
no outgoing calls