constants

Package-wide constants.

class pyphi.constants.Direction

Constants that parametrize cause and effect methods.

Accessed using Direction.PAST and Direction.FUTURE, etc.

PAST = 0
FUTURE = 1
BIDIRECTIONAL = 2
pyphi.constants.EPSILON = 1e-06

The threshold below which we consider differences in phi values to be zero.

pyphi.constants.FILESYSTEM = 'fs'

Label for the filesystem cache backend.

pyphi.constants.DATABASE = 'db'

Label for the MongoDB cache backend.

pyphi.constants.PICKLE_PROTOCOL = 4

The protocol used for pickling objects.

pyphi.constants.joblib_memory = Memory(cachedir='__pyphi_cache__/joblib')

The joblib Memory object for persistent caching without a database.

pyphi.constants.EMD = 'EMD'

Earth Mover’s Distance.

pyphi.constants.KLD = 'KLD'

Kullback-Leibler Divergence.

pyphi.constants.L1 = 'L1'

L1 distance.

pyphi.constants.ENTROPY_DIFFERENCE = 'ENTROPY_DIFFERENCE'

Entropy difference.

pyphi.constants.MEASURES = ['EMD', 'KLD', 'L1', 'ENTROPY_DIFFERENCE', 'PSQ2', 'MP2Q']

A list of all available measures.

pyphi.constants.OFF = (0,)

Node states