71d61f102189f8b7337567ca34ad590f2ddf4808,snntoolbox/simulation/target_simulators/INI_ttfs_target_sim.py,SNN,simulate,#SNN#,34

Before Change


            for l in range(self.num_classes):
                spike = 0
                for t in range(self._num_timesteps):
                    if output_b_l_t[b, l, t]:
                        spike = True
                    output_b_l_t[b, l, t] = spike

        self.avg_rate /= self.batch_size * np.sum(self.num_neurons) * \
            self._num_timesteps

After Change


            clean_guesses_b = np.where(undecided_b, none_class_b, guesses_b)
            current_acc = np.mean(kwargs[str("truth_b")] == clean_guesses_b)
            if self.config.getint("output", "verbose") > 0:
                if sim_step % 1 == 0:
                    echo("{:.2%}_".format(current_acc))
            else:
                sys.stdout.write("\r{:>7.2%}".format(current_acc))
                sys.stdout.flush()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 71d61f102189f8b7337567ca34ad590f2ddf4808
Time: 2018-02-27
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/simulation/target_simulators/INI_ttfs_target_sim.py
Class Name: SNN
Method Name: simulate


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: f41276a549a21f617c5d50182d67595cffcb4a73
Time: 2016-08-09
Author: evangelos.stromatias@imse-cnm.csic.es
File Name: snntoolbox/target_simulators/MegaSim_target_sim.py
Class Name: SNN_compiled
Method Name: build


Project Name: etal/cnvkit
Commit Name: e06b04eacb0eefdd392e54a0ec2a4f24c22ef50c
Time: 2014-09-08
Author: eric.talevich@gmail.com
File Name: cnvlib/target.py
Class Name:
Method Name: assign_names