Skip to content

Python module for computing Symbolic Mutual Information and symbolic Transfer of Entropy

Notifications You must be signed in to change notification settings

NeoNeuron/smite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symbolic Mutual Information and Transfer Entropy (smite)

installation

git clone https://github.com/NeoNeuron/smite.git
pip install -e .

Simple Example:

import smite
import numpy as np

X = np.random.randint(10, size=3000)
Y = np.roll(X,-1)

symX = smite.symbolize(X,3)
symY = smite.symbolize(Y,3)

MI = smite.symbolic_mutual_information(symX, symY)

TXY = smite.symbolic_transfer_entropy(symX, symY)
TYX = smite.symbolic_transfer_entropy(symY, symX)
TE = TYX - TXY

print("Mutual Information = " + str(MI))
print("T(Y->X) = " + str(TXY))
print("T(X->Y) = " + str(TYX))
print("Transfer of Entropy = " + str(TE))

About

Python module for computing Symbolic Mutual Information and symbolic Transfer of Entropy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%