66268ffdc847e64216114871bd4169ad7872966a,snntoolbox/simulation/target_simulators/pyNN_target_sim.py,SNN,simulate,#SNN#,134

Before Change


    def simulate(self, **kwargs):

        if self._poisson_input:
            rates = kwargs[str("x_b_l")].flatten()
            for neuron_idx, neuron in enumerate(self.layers[0]):
                neuron.rate = rates[neuron_idx] / self.rescale_fac * 1000
        elif self._dataset_format == "aedat":
            raise NotImplementedError
        else:
            constant_input_currents = kwargs[str("x_b_l")].flatten()

After Change



        self.sim.run(self._duration - self._dt,
                     callbacks=[MyProgressBar(self._dt, self._duration)])
        print("\nCollecting results...")
        output_b_l_t = self.get_recorded_vars(self.layers)

        return output_b_l_t
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 66268ffdc847e64216114871bd4169ad7872966a
Time: 2019-04-11
Author: bodo.rueckauer@intel.com
File Name: snntoolbox/simulation/target_simulators/pyNN_target_sim.py
Class Name: SNN
Method Name: simulate


Project Name: rusty1s/pytorch_geometric
Commit Name: 3238295386c5c5e9d39ed770e92a54326430b8ae
Time: 2017-11-21
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/visualization/mnist_graph.py
Class Name:
Method Name:


Project Name: explosion/thinc
Commit Name: 318e3f3d6206be4edc4c6332a450cbf3774d7c6f
Time: 2017-01-28
Author: honnibal@gmail.com
File Name: thinc/tests/integration/test_basic_tagger.py
Class Name:
Method Name: test_small_end_to_end


Project Name: philipperemy/deep-speaker
Commit Name: 1fd21b2ea2f83021972a0fa04e5aa369d4a5e0ee
Time: 2017-07-03
Author: premy@reactive.co.jp
File Name: next_batch.py
Class Name: MiniBatch
Method Name: to_inputs


Project Name: arviz-devs/arviz
Commit Name: 37a730ebd6d370cfad1e986ef842a919c1f33922
Time: 2018-12-06
Author: aloctavodia@gmail.com
File Name: arviz/plots/traceplot.py
Class Name:
Method Name: plot_trace