=========================
IFA is a simple and fast library for information theory research and information flow analysis. It's a Python module written C++, Cython.
Installation
============
Dependencies:
* numpy
If you have Cython some cpp files will get regenerated during installation
```bash
pip install ifa
```
Or if you want the developmen version:
```bash
git clone https://github.com/janekolszak/ifa.git;
cd ifa;
sudo make install;
```
Usage
=====
Computing Jensen–Shannon divergence:
```python
from ifa.distribution import Distribution
from ifa.divergence import jsd
from numpy.testing import assert_allclose
p = Distribution(["A", "B"], [0.5, 0.5])
q = Distribution(["A", "C"], [0.5, 0.5])
assert_allclose(jsd(p, 0.5, q, 0.5), [0.5])
```
What's inside:
==============
* Distribution class with some basic operations
* Divergences:
* Jensen–Shannon divergence
* Kullback–Leibler divergence
* Functions to compute information flow between distributions
Metadata
Release files for ifa 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ifa-0.2.0.tar.gz | 171.8 kB | Without provenance | Details |
Release files / ifa-0.2.0.tar.gz
| Download URL | ifa-0.2.0.tar.gz |
|---|---|
| Size | 171.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
645aefff8d97995125928273b1b38cfab218424c873837f41b3e46a1a5fbcb27
|
|
BLAKE2b-256 checksum How to use checksums |
321ec5e396f12afef5470a751c0b255d0ac79e6df8120e2b0474d3535097f6cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ifa 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.