4cc92327ae0b71ac634b34d891e723417ebe3a89,examples/benchmark_similar_to_brain2.py,,,#,9

Before Change


  // Run the network on the input for time `run_time`.
  start = timeit.timeit()
  spikes = network.run(inpts={}, time=run_time)
  end = timeit.timeit()
  results[i] = end - start


print("Average: ",torch.mean(results)," std: ",torch.std(results))

After Change



for i in range(tests):
  // Run the network on the input for time `run_time`.
  start = time.time()
  spikes = network.run(inpts={}, time=run_time)
  end = time.time()
  results[i] = end - start
  print(results[i])

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: BindsNET/bindsnet
Commit Name: 4cc92327ae0b71ac634b34d891e723417ebe3a89
Time: 2018-03-12
Author: hananel@hazan.org.il
File Name: examples/benchmark_similar_to_brain2.py
Class Name:
Method Name:


Project Name: rodluger/starry
Commit Name: db3067d949df09adf08e48d5a854fd4643ed900a
Time: 2018-09-11
Author: rodluger@gmail.com
File Name: tex/figures/speed.py
Class Name:
Method Name: speed


Project Name: rodluger/starry
Commit Name: db3067d949df09adf08e48d5a854fd4643ed900a
Time: 2018-09-11
Author: rodluger@gmail.com
File Name: tex/figures/speed.py
Class Name:
Method Name: compare_to_numerical