GithubHelp home page GithubHelp logo

Comments (4)

sms821 avatar sms821 commented on July 20, 2024 1

Thanks a lot for the clarification!

It saved me a lot of time as I am trying to port one of these applications to a hardware simulator for spiking neural networks to study their hardware-related properties.

This is a great tool for people trying to understand and use SNNs .

from snn_toolbox.

rbodo avatar rbodo commented on July 20, 2024

This is in contrast with my understanding that membrane potential should reset to 0 once the threshold is reached. Also, isn't the threshold supposed to be fixed at 1 for all timesteps?

This is correct. (There is an option in INIsim to reset not to zero but to the excess charge above threshold, called "reset by subtraction". There the membrane potential is reduced by the threshold value at the time of a spike.)

I have noticed weird artifacts in the membrane potential plots before. I attribute them to matplotlib not being able to show the overlapping traces of a large number of neurons, so that sometimes the reset lines and others disappear. But I can't say if it's the case here without seeing the plot.

Try to compare the potential plot against the spiketrain plot. Do the times when the membrane potential crosses threshold have a corresponding dot in the rasterplot?

By the way, which simulator are you using, the builtin INIsim (default) or pyNN? Is the accuracy of the SNN ok?

from snn_toolbox.

sms821 avatar sms821 commented on July 20, 2024

Hello, Thanks for your reply.

I am using the default INIsim simulator and SNN accuracy 100% for the single input image. I ran the same simulation again, but this time, changed the reset config to "reset to zero". I also tried plotting the neuron membrane potential by setting "plot_vars = {'v_mem'}" in the config file. However, the tool failed to plot any membrane potential data (it's plotting the other metrics such as correlation, spikerate etc. ok). As a result, I am unable to compare it against the spike train raster plot.

from snn_toolbox.

rbodo avatar rbodo commented on July 20, 2024

Oh, I see now - you mentioned that you were looking at the output layer. This layer is special in that it has a softmax nonlinearity. We have different ways of implementing this nonlinearity in INIsim; the default one uses stochastic neurons that just fire in proportion to their membrane potential, without resetting. In the other layers, you should observe the reset as expected.

And yes, when using INIsim, plotting the v_mem is not supported. You can plot the membrane potential when using pyNN simulators.

from snn_toolbox.

Related Issues (20)

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.