alishdipani / nmnist-stdp-spinnaker Goto Github PK
View Code? Open in Web Editor NEWA Spiking Neural Network model for Digit Recognition using the N-MNIST dataset.
A Spiking Neural Network model for Digit Recognition using the N-MNIST dataset.
Hi, I refer to the training of digit recognition. Is my interpretation correct:
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, ...
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.
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!
Hi, I refer to the training of digit recognition. Is my interpretation correct:
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, ...
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.
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!
@alishdipani Hi, I would like to know how to get accuracy from the result. Will the code update in the future? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.