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

Method compute_decays

bindsnet/network/nodes.py:1122–1133  ·  view source on GitHub ↗

Sets the relevant decays.

(self, dt)

Source from the content-addressed store, hash-verified

1120 self.refrac_count.zero_() # Refractory period counters.
1121
1122 def compute_decays(self, dt) -> None:
1123 # language=rst
1124 """
1125 Sets the relevant decays.
1126 """
1127 super().compute_decays(dt=dt)
1128 self.decay = torch.exp(
1129 -self.dt / self.tc_decay
1130 ) # Neuron voltage decay (per timestep).
1131 self.theta_decay = torch.exp(
1132 -self.dt / self.tc_theta_decay
1133 ) # Adaptive threshold decay (per timestep).
1134
1135 def set_batch_size(self, batch_size) -> None:
1136 # language=rst

Callers

nothing calls this directly

Calls 1

compute_decaysMethod · 0.45

Tested by

no test coverage detected