Skip to main content

Putting GaelVaraquaux's gist in a repo. Mutual information calculation utils.

Project description

Mutual Information

reeeeeedme

Estimating differential entropy and mutual information.

Non-parametric computation of differential entropy and mutual-information. Originally adapted by G Varoquaux in a gist for code created by R Brette, itself from several papers (see in the code). These computations rely on nearest-neighbor statistics.

See Makefile for example ops.

See https://pypi.org/project/mutual-info

Do not pin packages for now. Let's surf latest and find out when things break.

Install

python setup.py install

or

pip install pypi

Develop install

python setup.py develop

Tests

make test

TODO

  • incorporate fixes from @thismartian (see thismartian branch)
  • test shift invariance of entropy (not multiplicative)
  • test triangle inequality of mutual information
  • test symmetry of mutual information
  • test scale and shift invariance of mutual information (any smooth invertible transformation)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mutual_info-0.31.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

mutual_info-0.31-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page