GithubHelp home page GithubHelp logo

Comments (3)

rbodo avatar rbodo commented on July 2, 2024

Hi,

I can't reproduce the issue; when I run the example (also with your modifications), I get an average spike rate of 0.082...

I'm using tensorflow 2.2.0. I don't think it will make a difference, but you shouldn't explicitly have to install the -gpu version, that is contained in plain pip install tensorflow now. Also, keras does not need to be installed separately any more, the toolbox now uses keras from within tf. Maybe that solves it, otherwise you could try setting a breakpoint here and check whether the spiketrains variable contains any nonzero values.

from snn_toolbox.

dahexiangdongliu avatar dahexiangdongliu commented on July 2, 2024

Hi,

Thanks for your reply! I have created a new environment and installed matplotlib, then the average spike rate was right.

I have set a breakpoint where you recommended, and I found that the self.spiketrains_n_b_l_t was None when the matplotlib was not installed.

When I have installed matplotlib, and removed the config['output'] of the config of mnist_keras_INI.py, the self.spiketrains_n_b_l_t was also None.

Does it mean the spikes printed here is just for plotting, instead of the real spikes when the toolbox is simulating?

from snn_toolbox.

rbodo avatar rbodo commented on July 2, 2024

That is correct. When running a large network, recording the spiketrains gets very time and memory consuming, so it is enabled only if needed for plotting. Of course the spikes are still there, we just don't write them out.

In any case, the toolbox shouldn't report a zero rate, I fixed this now.

Thanks for noticing.

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.