a39f1f8ece8368fa7e66fed97d7c9beac9530819,bindsnet/network/nodes.py,DiehlAndCookNodes,_reset,#DiehlAndCookNodes#,419

Before Change


        Resets relevant state variables.
        """
        super()._reset()
        self.v = torch.zeros(self.v.size()) + self.rest        // Neuron voltages.
        self.refrac_count[self.refrac_count != 0] = 0  // Refractory period counters.


class IzhikevichNodes(Nodes):

After Change



        super().step(inpts, dt)
        
    def _reset(self):
        """
        Resets relevant state variables.
        """
        super()._reset()
        self.v = self.rest * torch.ones(self.shape)  // Neuron voltages.
        self.refrac_count = torch.zeros(self.shape)  // Refractory period counters.


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

Frequency: 3

Non-data size: 18

Instances


Project Name: BindsNET/bindsnet
Commit Name: a39f1f8ece8368fa7e66fed97d7c9beac9530819
Time: 2018-06-11
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: DiehlAndCookNodes
Method Name: _reset


Project Name: BindsNET/bindsnet
Commit Name: a39f1f8ece8368fa7e66fed97d7c9beac9530819
Time: 2018-06-11
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: AdaptiveLIFNodes
Method Name: _reset


Project Name: BindsNET/bindsnet
Commit Name: a39f1f8ece8368fa7e66fed97d7c9beac9530819
Time: 2018-06-11
Author: djsaunde@umass.edu
File Name: bindsnet/network/nodes.py
Class Name: IFNodes
Method Name: _reset