Creating a reduced SPI set
Filtering an SPI Set
from pyspi.utils import filter_spis
# let's only select SPIs with the keywords "linear" and "signed"
# we will need to provide these keywords in a list
keywords = ["linear", "signed"]
# we will need to specify the location of the original config.yaml
filter_spis(keywords=keywords, output_name="linear_signed.yaml")from pyspi.calculator import Calculator
import numpy as np
data = np.random.randn(3, 100) # your time series data
calc = Calculator(configfile="linear_signed.yaml", dataset=data)
# print the number of SPIs initialised in the Calculator instance
print(calc.n_spis)Manually specifying a reduced set
Last updated