38614c98b0c622ce43702317082bf076bba5b28d,bindsnet/network/nodes.py,Input,_reset,#Input#,96

Before Change


		"""
		Resets relevant state variables.
		"""
		self.s = torch.zeros_like(torch.Tensor(self.n))  // Spike occurences.

		if self.traces:
			self.x = torch.zeros_like(torch.Tensor(self.n))  // Firing traces.


class McCullochPitts(Nodes):

After Change


			self.x -= dt * self.trace_tc * self.x
			self.x[self.s] = 1

	def _reset(self):
		"""
		Resets relevant state variables.
		"""
		self.s[self.s != 0] = 0  // Spike occurences.

		if self.traces:
			self.x = torch.zeros(self.n)  // Firing traces.


class McCullochPitts(Nodes):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 15

Instances


Project Name: BindsNET/bindsnet
Commit Name: 38614c98b0c622ce43702317082bf076bba5b28d
Time: 2018-03-14
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: Input
Method Name: _reset


Project Name: BindsNET/bindsnet
Commit Name: 38614c98b0c622ce43702317082bf076bba5b28d
Time: 2018-03-14
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: McCullochPitts
Method Name: _reset


Project Name: BindsNET/bindsnet
Commit Name: 38614c98b0c622ce43702317082bf076bba5b28d
Time: 2018-03-14
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: IFNodes
Method Name: _reset