99de913d4e45bcfa18a37ca05234d04b9857ce4d,bindsnet/learning/__init__.py,MSTDPET,_conv2d_connection_update,#MSTDPET#,397

Before Change


        self.connection.w += self.nu[0] * reward * self.e_trace

        // Bound weights.
        self.connection.w = torch.clamp(self.connection.w, self.wmin, self.wmax)

After Change


        :param float a_plus: Learning rate (post-synaptic).
        :param float a_minus: Learning rate (pre-synaptic).
        
        super().update()

        // Parse keyword arguments.
        reward = kwargs["reward"]
        a_plus = kwargs.get("a_plus", 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 10

Instances


Project Name: BindsNET/bindsnet
Commit Name: 99de913d4e45bcfa18a37ca05234d04b9857ce4d
Time: 2018-09-10
Author: djsaunde@umass.edu
File Name: bindsnet/learning/__init__.py
Class Name: MSTDPET
Method Name: _conv2d_connection_update


Project Name: BindsNET/bindsnet
Commit Name: 99de913d4e45bcfa18a37ca05234d04b9857ce4d
Time: 2018-09-10
Author: djsaunde@umass.edu
File Name: bindsnet/learning/__init__.py
Class Name: MSTDP
Method Name: _conv2d_connection_update


Project Name: BindsNET/bindsnet
Commit Name: 99de913d4e45bcfa18a37ca05234d04b9857ce4d
Time: 2018-09-10
Author: djsaunde@umass.edu
File Name: bindsnet/learning/__init__.py
Class Name: Hebbian
Method Name: _conv2d_connection_update


Project Name: BindsNET/bindsnet
Commit Name: 99de913d4e45bcfa18a37ca05234d04b9857ce4d
Time: 2018-09-10
Author: djsaunde@umass.edu
File Name: bindsnet/learning/__init__.py
Class Name: PostPre
Method Name: _conv2d_connection_update