Git Product home page Git Product logo

Comments (3)

robince avatar robince commented on July 21, 2024 1
nk.mutual_information(np.abs(x), y + noise, method="gc")

would I think be sensitive to y=x**2 effect, but requires some sort of prior knowledge (and would lose linear effects). In general if you want to have sensitivity to a symmetric effect you can create a 2d variable np.stack([x, np.abs(x-np.median(x))]) and put that as a 2d input for GCMI. There is a cost in terms of sensitivity and sampling variance for going to 2d and it's not very elegant, but just a suggestion :)

nk.mutual_information(np.stack([x, np.abs(x-np.median(x))]), y + noise, method="gc")

Sorry about the incompatible license. I have always preferred the GPL for publically funded academic work, but perhaps that view is a bit out of date now!

from gcmi.

robince avatar robince commented on July 21, 2024

I think your signal is y=x**2 + noise. GCMI won't detect this sort of symmetric effect, it can detect only monotonic effects (it is like a rank correlation). You could try adding in abs(x) as a second dimension of x.

Also I apprecaite your interest but GCMI is licensed under the GPL so code can't be reused and released under MIT.

from gcmi.

DominiqueMakowski avatar DominiqueMakowski commented on July 21, 2024

Thanks for your reply

You could try adding in abs(x) as a second dimension of x.

I am not sure what you mean here?

GCMI is licensed under the GPL

Ah sorry I missed that. Shame, I'll close the PR then!

from gcmi.

Related Issues (7)

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.