99de913d4e45bcfa18a37ca05234d04b9857ce4d,bindsnet/learning/__init__.py,PostPre,_conv2d_connection_update,#PostPre#,123
Before Change
self.connection.w += self.nu[1] * post.view(self.connection.w.size())
// Bound weights.
self.connection.w = torch.clamp(
self.connection.w, self.connection.wmin, self.connection.wmax
)
class Hebbian(LearningRule):
// language=rst
After Change
Post-pre learning rule for ``Conv2dConnection`` subclass of ``AbstractConnection`` class.
super().update()
// Get convolutional layer parameters.
out_channels, _, kernel_height, kernel_width = self.connection.w.size()
padding, stride = self.connection.padding, self.connection.stride
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 13
Instances
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
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: _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: _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