Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions examples/mnist/supervised_mnist.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -87,7 +87,7 @@
exc=exc,
inh=inh,
dt=dt,
nu=[1e-2, 1e-4],
nu=[1e-10, 1e-3], # 0.711
norm=78.4,
theta_plus=theta_plus,
inpt_shape=(1, 28, 28),
Expand DownExpand Up@@ -241,11 +241,8 @@
print("Progress: %d / %d \n" % (n_train, n_train))
print("Training complete.\n")


print("Testing....\n")



# Load MNIST data.
test_dataset = MNIST(
PoissonEncoder(time=time, dt=dt),
Expand DownExpand Up@@ -307,7 +304,7 @@
pbar.update()

print("\nAll activity accuracy: %.2f" % (accuracy["all"] / test_dataset.test_labels.shape[0]))
print("Proportion weighting accuracy: %.2f \n" % (accuracy["proportion"] / test_dataset.test_labels.shape[0]))
print("Proportion weighting accuracy: %.2f \n" % (accuracy["proportion"] / test_dataset.test_labels.shape[0]))


print("Testing complete.\n")