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

Method compute_decays

bindsnet/network/nodes.py:1474–1485  ·  view source on GitHub ↗

Sets the relevant decays.

(self, dt)

Source from the content-addressed store, hash-verified

1472 self.v.fill_(self.rest) # Neuron voltages.
1473
1474 def compute_decays(self, dt) -> None:
1475 # language=rst
1476 """
1477 Sets the relevant decays.
1478 """
1479 super().compute_decays(dt=dt)
1480 self.decay = torch.exp(
1481 -self.dt / self.tc_decay
1482 ) # Neuron voltage decay (per timestep).
1483 self.theta_decay = torch.exp(
1484 -self.dt / self.tc_theta_decay
1485 ) # Adaptive threshold decay (per timestep).
1486
1487 def set_batch_size(self, batch_size) -> None:
1488 # language=rst

Callers

nothing calls this directly

Calls 1

compute_decaysMethod · 0.45

Tested by

no test coverage detected