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
                    x2, y2 = j // self.n_sqrt, j % self.n_sqrt

                    w[i, j] = np.sqrt(euclidean([x1, y1], [x2, y2]))
        w = w / w.max()
        w = (w * self.max_inhib) + self.start_inhib
        recurrent_output_conn = Connection(
            source=self.layers["Y"],
            target=self.layers["Y"],
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


Project Name: suavecode/SUAVE
Commit Name: b0ab376cb45f9c8cc4df39c3f28bc2a2b4c958a6
Time: 2014-06-19
Author: aerialhedgehog@gmail.com
File Name: trunk/SUAVE/Attributes/Missions/Segments/Climb/Constant_Throttle_Constant_Speed.py
Class Name: Constant_Throttle_Constant_Speed
Method Name: __defaults__