a802d31210ed262b8159b656b256bdacf10c9d61,bindsnet/models/models.py,IncreasingInhibitionNetwork,__init__,#IncreasingInhibitionNetwork#,313

Before Change


        )
        self.add_connection(input_output_conn, source="X", target="Y")

        w = torch.zeros(self.n_neurons, self.n_neurons)
        for i in range(self.n_neurons):
            for j in range(self.n_neurons):
                if i != j:
                    x1, y1 = i // self.n_sqrt, i % self.n_sqrt

After Change


        self.add_connection(input_output_conn, source="X", target="Y")

        // add internal inhibetory connections
        w = torch.ones(self.n_neurons, self.n_neurons) - torch.diag(torch.ones(self.n_neurons))
        for i in range(self.n_neurons):
            for j in range(self.n_neurons):
                if i != j:
                    x1, y1 = i // self.n_sqrt, i % self.n_sqrt
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: BindsNET/bindsnet
Commit Name: a802d31210ed262b8159b656b256bdacf10c9d61
Time: 2020-05-11
Author: hananel@hazan.org.il
File Name: bindsnet/models/models.py
Class Name: IncreasingInhibitionNetwork
Method Name: __init__


Project Name: SheffieldML/GPy
Commit Name: e0c71184597f138863cdf9be039c991f79eab651
Time: 2016-05-04
Author: alessandra.tosi@eng.ox.ac.uk
File Name: GPy/kern/src/stationary.py
Class Name: Stationary
Method Name: gradients_XX_diag