Hey…thank you for your response and yeah it did work:smiley:
I got that from this link

  
      github.com
  
  
    BINDS-LAB-UMASS/bindsnet_experiments/blob/master/experiments/mnist/backprop.py 10
import os
import torch
import argparse
import numpy as np
import matplotlib.pyplot as plt

from time import time as t
from sklearn.metrics import confusion_matrix

from bindsnet.datasets import MNIST
from bindsnet.network import Network, load_network
from bindsnet.network.monitors import Monitor
from bindsnet.network.topology import Connection
from bindsnet.network.nodes import RealInput, IFNodes
from bindsnet.analysis.plotting import plot_spikes, plot_weights

from experiments import ROOT_DIR

data = 'mnist'
model = 'backprop'


  This file has been truncated. show original