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)
| File | Size | Uploaded | |
|---|---|---|---|
| latentmi-0.1.3.tar.gz | 8.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|