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

Method compute_decays

bindsnet/network/nodes.py:956–967  ·  view source on GitHub ↗

Sets the relevant decays.

(self, dt)

Source from the content-addressed store, hash-verified

954 self.refrac_count.zero_() # Refractory period counters.
955
956 def compute_decays(self, dt) -> None:
957 # language=rst
958 """
959 Sets the relevant decays.
960 """
961 super().compute_decays(dt=dt)
962 self.decay = torch.exp(
963 -self.dt / self.tc_decay
964 ) # Neuron voltage decay (per timestep).
965 self.theta_decay = torch.exp(
966 -self.dt / self.tc_theta_decay
967 ) # Adaptive threshold decay (per timestep).
968
969 def set_batch_size(self, batch_size) -> None:
970 # language=rst

Callers

nothing calls this directly

Calls 1

compute_decaysMethod · 0.45

Tested by

no test coverage detected