Skip to main content

An open source implementation to compute bi-variate Transfer Entropy.

Project description

PyIF

An open source implementation to compute bi-variate Transfer Entropy.

Then from PyIF import te_compute to import the needed functions. Then all that is needed then is to call the te_compute function.

Installation

To install from pip all that is needed is run the line pip install PyIF.

To install a the development release of Py-TE run the following command

pip install -e .

Example

from PyIF import te_compute as te
import numpy as np
rand = np.random.RandomState(seed=23)

X_1000 = rand.randn(1000, 1).flatten()
Y_1000 = rand.randn(1000, 1).flatten()

TE = te.te_compute(X_1000, Y_1000, k=1, embedding=1, safetyCheck=True, GPU=False)

print(TE)

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyIF-0.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

PyIF-0.1-py3-none-any.whl (7.1 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