Giter Club home page Giter Club logo

Comments (1)

antelk avatar antelk commented on June 19, 2024

I think we can think of this as solved.

Even though we do not provide feature extraction by using eFEL or some other library behind the scenes, the user can manually use eFEL or any other external library of choice to extract features.

See for example this simple code snippet:

dt = ...
eqs = ...
inferencer = Inferencer(dt=dt, model=eqs,
                        input=...,
                        output=...,
                        features={'v': [lambda x: x.mean(),
                                        lambda x: x.std(),
                                        lambda x: x.max()]},
                        method=...,
                        threshold=...,
                        refractory=...,
                        param_init=...)

what the user could do is to define additional function that will use any external library.
Let's say that, for whatever the reason is, the potentially interesting feature to learn the posterior could be the sample entropy.
The user would just have to import the library of choice that is able to compute this and wrap it inside the callable as follows:
(Here I use antropy because of its user friendliness)

import antropy as ant

...

sample_entropy(x):
    return ant.sample_entropy(x)

...

dt = ...
eqs = ...
inferencer = Inferencer(dt=dt, model=eqs,
                        input=...,
                        output=...,
                        features={'v': [lambda x: x.mean(),
                                        lambda x: x.std(),
                                        lambda x: x.max()],
                                        sample_entropy},
                        method=...,
                        threshold=...,
                        refractory=...,
                        param_init=...)

from brian2modelfitting.

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.