ea09d1fd36b347bc86cbc52de8ea39ffbeb24dc1,examples/mnist/reservoir.py,,,#,105
Before Change
n_iters = 500
test_pairs = []
for i, (datum, label) in enumerate(loader):
if i % 100 == 0:
print("Test progress: (%d / %d)" % (i, n_iters))
network.run(inpts={"I": datum}, time=250)
test_pairs.append([spikes["O"].get("s").sum(-1), label])
inpt_axes, inpt_ims = plot_input(
After Change
for (step, dataPoint) in pbar:
datum = dataPoint["encoded_image"]
label = dataPoint["label"]
pbar.set_description("Train progress: (%d / %d)" % (i, n_iters))
network.run(inpts={"I": datum}, time=250, input_time_dim=1)
test_pairs.append([spikes["O"].get("s").sum(-1), label])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: BindsNET/bindsnet
Commit Name: ea09d1fd36b347bc86cbc52de8ea39ffbeb24dc1
Time: 2019-06-21
Author: hananel@hazan.org.il
File Name: examples/mnist/reservoir.py
Class Name:
Method Name:
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: fd723d719ddb49b66a5084215343de763a40083d
Time: 2018-01-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: train_one_epoch
Project Name: kevinzakka/recurrent-visual-attention
Commit Name: fd723d719ddb49b66a5084215343de763a40083d
Time: 2018-01-23
Author: kevinarmandzakka@gmail.com
File Name: trainer.py
Class Name: Trainer
Method Name: validate