MCPcopy Create free account
hub / github.com/BindsNET/bindsnet / PoissonEncoder

Class PoissonEncoder

bindsnet/encoding/encoders.py:88–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88class PoissonEncoder(Encoder):
89 def __init__(self, time: int, dt: float = 1.0, approx: bool = False, **kwargs):
90 # language=rst
91 """
92 Creates a callable PoissonEncoder which encodes as defined in
93 ``bindsnet.encoding.poisson`
94
95 :param time: Length of Poisson spike train per input variable.
96 :param dt: Simulation time step.
97 :param approx: Bool: use alternate faster, less accurate computation.
98
99 """
100 super().__init__(time, dt=dt, approx=approx, **kwargs)
101
102 self.enc = encodings.poisson
103
104
105class RankOrderEncoder(Encoder):

Callers 13

loc1d_mnist.pyFile · 0.90
SOM_LM-SNNs.pyFile · 0.90
conv3d_MNIST.pyFile · 0.90
reservoir.pyFile · 0.90
batch_eth_mnist.pyFile · 0.90
MCC_reservoir.pyFile · 0.90
eth_mnist.pyFile · 0.90
loc2d_mnist.pyFile · 0.90
loc3d_mnist.pyFile · 0.90
conv1d_MNIST.pyFile · 0.90
conv_mnist.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected