Skip to main content

approximating mutual information in high dimensions

Project description

latentmi

Latent MI (LMI) approximation is a method for estimating mutual information high dimensions. It is built on the idea that real world high-dimensional data has underlying low-dimensional structure. For more details, see our manuscript. latentmi is our Python implementation of LMI approximation, built with the hope that practicioners can use it with minimal pain and suffering :)

Installation

$ pip install latentmi

Usage

from latentmi import lmi

Xs = # some samples of a high dimensional variable
Ys = # some samples of a high dimensional variable

pmis, embedding, model = lmi.lmi(Xs, Ys)

MI_estimate = np.nanmean(pmis) # voila !

More detailed instructions can be found in the example usage notebook.

License

latentmi was created by Gokul Gowri. It is licensed under the terms of the MIT license.

Credits

latentmi was created with cookiecutter and the py-pkgs-cookiecutter template.

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

latentmi-0.1.3.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

latentmi-0.1.3-py3-none-any.whl (8.6 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