Skip to main content

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.

Metadata

Release files for latentmi 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for latentmi 0.1.3
File Size Uploaded
latentmi-0.1.3.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for latentmi 0.1.3
File Interpreter ABI Platform
latentmi-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / latentmi-0.1.3.tar.gz

Download URL latentmi-0.1.3.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8b8e3ca266d9cb08afc760229234a84c3d247f00729cbfa2793af40f0f88d732
BLAKE2b-256 checksum
How to use checksums
614c8de81c4e66f1eae10de649380f62ec1ba79cfe7298cdfbcaeb702c80cf95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-28-generic

Release files / latentmi-0.1.3-py3-none-any.whl

Download URL latentmi-0.1.3-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c860fb375bcfd681b1833d399bf5ca6cfeb22bbc5034e64087c7647266352533
BLAKE2b-256 checksum
How to use checksums
e0aefb518b17b6e6df920ea14e77ccfa1e6aadc99e710a485af0f15f54464071
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-28-generic

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page