Code Monkey home page Code Monkey logo

Comments (5)

ChristophMetzner avatar ChristophMetzner commented on August 22, 2024

That sounds like a good idea. I guess, for many models that have been around for a while, people have already used transfer functions to produce firing rate output, which could then simply be used. This would also match the behaviour of the model in neurolib with the behaviour of the same model outside of neurolib. For example, someone reads papers about model A (for which transfer function f_A is traditionally being used) and wants to use it in neurolib. However, they are not aware of the different output scaling in neurolib right now. This could cause confusion and even wrong conclusions. The proposed change would prevent that.

from neurolib.

jajcayn avatar jajcayn commented on August 22, 2024

+1 for the user-defined lambda functions. for identity (i.e. no transform), it can be just lambda x: x

from neurolib.

caglorithm avatar caglorithm commented on August 22, 2024

People have already used transfer functions to produce firing rate output ... However, they are not aware of the different output scaling in neurolib right now

Right now, the output itself is not scaled before being "recorded" to the model.output object. This could be done in a very similar way but also done by the model integration itself. aln for example is originally implemented to output kHz but I convert it to Hz in a very hackish way (see Issue #53 ...). I don't quite like it I must admit because the aln model also expects kHz input. So once you start transforming outputs, I think you might also have to start transforming inputs...

from neurolib.

caglorithm avatar caglorithm commented on August 22, 2024

Thanks for the input from both of you. I will make a PR on this, stay tuned!

from neurolib.

caglorithm avatar caglorithm commented on August 22, 2024

Closed by #59

from neurolib.

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.