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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file mutual_info-0.31.tar.gz.

File metadata

  • Download URL: mutual_info-0.31.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.3

File hashes

Hashes for mutual_info-0.31.tar.gz
Algorithm Hash digest
SHA256 da2a472770b2e000f294ee6aceb9f7d3065914764a6f715ba9d4215109affdf2
MD5 c74f0fe685f3b54af5c2adf9ff20ca3e
BLAKE2b-256 5c22f9f2febe56181c155a241862d15ab8a751866d6b059f02eee9e316cea9fa

See more details on using hashes here.

File details

Details for the file mutual_info-0.31-py3-none-any.whl.

File metadata

  • Download URL: mutual_info-0.31-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.3

File hashes

Hashes for mutual_info-0.31-py3-none-any.whl
Algorithm Hash digest
SHA256 1587960404ee40da37ff9342d5a3a6a2ed4425def82ba1c7ce4e7843f5d1f0b9
MD5 277e34c0cfc4b27430c77c0780af21c3
BLAKE2b-256 5340dc6efa9f70c21ad67b12de25aad168f3eb69c0e688bc77c7ab7ebb3b2ba1

See more details on using hashes here.

Supported by

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