Code Monkey home page Code Monkey logo

Comments (4)

rbodo avatar rbodo commented on May 25, 2024

Hi @abdul-muneeb7 , sorry for the delayed response.

The poisson encoding happens here. The line that probably causes the non-binary spikes you observed is here. This step assumes that the input samples contained in x_b_l are normalized, such that max(x_b_l) == 1, in which case this line does not modify the spikes. It is possible however that even after normalizing the dataset globally (which you did), an individual batch x_b_l may not have a maximum of 1. Another possibility is that you did not use max norm but some percentile norm so that the global maximum is different from 1. I'd recommend removing line 302 as it was only intended for the special case of networks with binary weights.

from snn_toolbox.

abdul-muneeb7 avatar abdul-muneeb7 commented on May 25, 2024

Sure, Thanks for getting back to me @rbodo. I have seen this poisson encoding code part, here but just wanted to learn more from the explanation in any of your papers.

from snn_toolbox.

rbodo avatar rbodo commented on May 25, 2024

The basic idea is that at each time step you draw a random number and if it is below the poisson rate parameter, you get a spike. The higher the rate parameter, the higher the probability of generating a spike.

from snn_toolbox.

abdul-muneeb7 avatar abdul-muneeb7 commented on May 25, 2024

Got it. Thanks, Prof. @rbodo.

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.