4461f2d4c1f140667b8fe9305efffb4351e54460,snntoolbox/simulation/target_simulators/INI_target_sim.py,SNN,simulate,#SNN#,112

Before Change


                output_b_l_t[:, :, sim_step_int] = np.argmax(np.reshape(
                    out_spikes.astype("int32"), (out_spikes.shape[0], -1)), 1)
            else:
                output_b_l_t[:, :, sim_step_int] = out_spikes.astype("int32")

            // Record neuron variables.
            i = j = 0
            for layer in self.snn.layers:

After Change


                    spike_sums_b_l = np.sum(output_b_l_t, 2)
                    undecided_b = np.sum(spike_sums_b_l, 1) == 0
                    guesses_b = np.argmax(spike_sums_b_l, 1)
                none_class_b = -1 * np.ones(self.batch_size)
                clean_guesses_b = np.where(undecided_b, none_class_b, guesses_b)
                echo("{:.2%}_".format(np.mean(kwargs[str("truth_b")] ==
                                              clean_guesses_b)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 4461f2d4c1f140667b8fe9305efffb4351e54460
Time: 2017-10-25
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/target_simulators/INI_target_sim.py
Class Name: SNN
Method Name: simulate


Project Name: deepchem/deepchem
Commit Name: ec30c1451474433f77b2caa609f04e6688965c1e
Time: 2020-07-19
Author: shak360@gmail.com
File Name: deepchem/models/tests/test_layers.py
Class Name: TestLayers
Method Name: test_cosine_dist


Project Name: PyMVPA/PyMVPA
Commit Name: 0dff96e2921e94c97bf8c2314b84cf23b44048f6
Time: 2015-03-24
Author: superstar@medusa.ovgu.de
File Name: mvpa2/tests/test_stelzer_clusterthr.py
Class Name:
Method Name: test_cluster_count