Skip to main content
Information Flow Analysis
=========================

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

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)

Source distribution for ifa 0.2.0
File Size Uploaded
ifa-0.2.0.tar.gz 171.8 kB 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.3

1 release file

0.0.1

1 release file

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