c3498e8064176494925856449a4aab2c45701c09,bindsnet/network/nodes.py,IzhikevichNodes,forward,#IzhikevichNodes#Any#,1205
Before Change
// Add inter-columnar input.
if self.s.any():
x += self.S[:, self.s.view(-1)].sum(dim=1)
// Apply v and u updates.
self.v += self.dt * 0.5 * (0.04 * self.v ** 2 + 5 * self.v + 140 - self.u + x)
After Change
// Add inter-columnar input.
if self.s.any():
x += torch.cat([self.S[:, self.s[i]].sum(dim=1)[None] for i in range(self.s.shape[0])], dim=0)
// Apply v and u updates.
self.v += self.dt * 0.5 * (0.04 * self.v ** 2 + 5 * self.v + 140 - self.u + x)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: BindsNET/bindsnet
Commit Name: c3498e8064176494925856449a4aab2c45701c09
Time: 2019-07-19
Author: hananel@hazan.org.il
File Name: bindsnet/network/nodes.py
Class Name: IzhikevichNodes
Method Name: forward
Project Name: lcswillems/torch-rl
Commit Name: 2143ec0e8e6a02fade949bf15d9670500ce06234
Time: 2018-04-18
Author: lcswillems@gmail.com
File Name: torch_ac/algos/base.py
Class Name: BaseAlgo
Method Name: collect_transitions
Project Name: kengz/SLM-Lab
Commit Name: 4342569bc5e505a9d1a36b3b4a3d1269d3a2bcab
Time: 2018-09-21
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/hydra_dqn.py
Class Name: MultitaskDQN
Method Name: space_act