GithubHelp home page GithubHelp logo

Comments (4)

rbodo avatar rbodo commented on July 20, 2024

@jackyfaster Please close if this pull-request fixed the issue.

from snn_toolbox.

jackyfaster avatar jackyfaster commented on July 20, 2024

@rbodo hi,

thanks a lot for your reply , but i am not also successfully to run brian2.
first of all, i changed some modules version, Keras to 2.1.3; brian2 to 2.1.3.1; numpy to 1.14.5; tensorflow to 1.8.0; python to 3.5.4.
I used the keyword arguments in following test

self.layers.append(self.sim.NeuronGroup(
        np.prod(layer.output_shape[1:]), model=self.eqs, method='linear', 
        threshold=self.threshold,
        reset=self.v_reset, [dt=self._dt*self.sim.ms))

when I set self.eqs = 'v = 0 : 1' , i got the following error:
////////////////////////////////////////////////////////////////////////
SyntaxError: Illegal line 'v+=w' in abstract code. Cannot write to subexpression 'v'.
//////////////////////////////////////////////////////////////////////

when i set self.eqs = 'v = : 1' , i got another error as the following:
//////////////////////////////////////////////////////////////
brian2.equations.equations.EquationError: Parsing failed:
v = : 1
^
Expected end of text, found 'v' (at char 0), (line:1, col:1)
//////////////////////////////////////////////////////////

from snn_toolbox.

rbodo avatar rbodo commented on July 20, 2024

I believe the correct equation is
self.eqs = 'v : 1'

from snn_toolbox.

jackyfaster avatar jackyfaster commented on July 20, 2024

Great ,it woks, thanks !

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.