pyspi.calculator.Calculator

class pyspi.calculator.Calculator(dataset=None, name=None, labels=None, fast=False, sonnet=False, configfile=None)

Compute all pairwise interactions.

The calculator takes in a multivariate time-series dataset, computes and stores all pairwise interactions for the dataset. It uses a YAML configuration file that can be modified in order to compute a reduced set of pairwise methods.

Example

import numpy as np

dataset = np.random.randn(5,500)   # create a random multivariate time series (MTS)
calc = Calculator(dataset=dataset) # Instantiate the calculator
calc.compute()                     # Compute all pairwise interactions

__init__(dataset=None, name=None, labels=None, subset=None, configfile=None)

Methods

Attributes

Last updated

All page cover images on this wiki are created with the help of DALL-E, an AI program developed by OpenAI, or stock images from Unsplash.