Giter Site home page Giter Site logo

alishdipani / nmnist-stdp-spinnaker Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 4.0 573 KB

A Spiking Neural Network model for Digit Recognition using the N-MNIST dataset.

Jupyter Notebook 100.00%
spinnaker spynnaker nnmnist stdp spiking-neural-networks

nmnist-stdp-spinnaker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nmnist-stdp-spinnaker's Issues

Unsupervised learning

Hi, I refer to the training of digit recognition. Is my interpretation correct:

  1. We train each output neuron with a specific class. Meaning to say, suppose I have 100 images of class 1 ( 16 x 16 size). I initialise 256 input Poisson neurons with spike rate proportional to the pixel intensity and 1 output neuron, so there are 256 synapses specific to that output neuron. I run the simulation over 300ms x 100 (suppose I expose each image for 300ms) then I extract all the synaptic weights once training is done. Now if I have 100 images of class 2, I initialise a NEW set of 256 input poisson neurons and 1 NEW output neuron and I repeat the workflow, ...

  2. In this case, there is no concept of trained model, but rather trained synaptic weights. So each output neuron is characterised by their own 256 synaptic weights. This means that if I have 10 classes, and I use 10 output neurons, I will have 10 sets of 256 synaptic weights and together with the STDP definition, this constitutes a model.

  3. To assign a class to that output neuron, all I need is to feed the training images over the 10 sets of 256 synapses and record the spiking activity, albeit at zero learning rate, so weights will always be constant (The ones that are trained), the only change is how the output potential evolves and hits the threshold?

Thank you and have a happy holiday!

The idea behind unsupervised training

Hi, I refer to the training of digit recognition. Is my interpretation correct:

  1. We train each output neuron with a specific class. Meaning to say, suppose I have 100 images of class 1 ( 16 x 16 size). I initialise 256 input Poisson neurons with spike rate proportional to the pixel intensity and 1 output neuron, so there are 256 synapses specific to that output neuron. I run the simulation over 300ms x 100 (suppose I expose each image for 300ms) then I extract all the synaptic weights once training is done. Now if I have 100 images of class 2, I initialise a NEW set of 256 input poisson neurons and 1 NEW output neuron and I repeat the workflow, ...

  2. In this case, there is no concept of trained model, but rather trained synaptic weights. So each output neuron is characterised by their own 256 synaptic weights. This means that if I have 10 classes, and I use 10 output neurons, I will have 10 sets of 256 synaptic weights and together with the STDP definition, this constitutes a model.

  3. To assign a class to that output neuron, all I need is to feed the training images over the 10 sets of 256 synapses and record the spiking activity, albeit at zero learning rate, so weights will always be constant (The ones that are trained), the only change is how the output potential evolves and hits the threshold?

Thank you and have a happy holiday!

Get Accuracy

@alishdipani Hi, I would like to know how to get accuracy from the result. Will the code update in the future? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.