Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gcmi.