Skip to content

pyspi 3.0.1

Latest

Choose a tag to compare

@benfulcher benfulcher released this 30 Nov 22:29
fcd02ee
pip install --upgrade pyspi

This is a patch release containing fixes to the integrated-information and dynamic time warping SPIs. If you're coming from 2.x, check out the 3.0.0 release notes first.

Values that change

Only phi_star_* and phi_Geo_* change, and only in special cases:

  • Linearly dependent pairs are now labeled 'not appropriate' for phi_star_* and phi_Geo_*. For two series that are linearly dependent, at zero lag (or after the delay), these SPIs take log-determinants of singular covariance matrices, yielding arbitrary values that were incorrectly recorded as successful computations. For example, a negative φ* for a near copy, and values near 18 for a delayed or affine copy. Such pairs are now marked not appropriate.
  • phi_Geo_* now reaches its minimum for near copies. Its solver used to stall far from the minimum when the two pasts are nearly collinear (returning values near 20 despite a minimum of around 2.5e-4), with no warning. φ_G is now found by iterated generalised least squares, which is checked against minima computed in 60-digit arithmetic and is about 8 times faster. Other pairs change by at most 5e-7.

COMPUTATION_VERSION is 3.0.1, so a checkpoint written by 3.0.0 does not resume under 3.0.1.

Other fixes

  • DynamicTimeWarping gives one warning, saying how to fix it, when dtaidistance's compiled library cannot be loaded (as with dtaidistance 2.5's macOS wheels), instead of an error logged for every SPI. Values are unchanged.
  • DynamicTimeWarping.bivariate uses dtaidistance's C library when it is available, instead of falling back to tslearn. Values are unchanged.
  • Johansen cointegration SPIs no longer emit a ComplexWarning for every pair under NumPy 2.5. Values are unchanged.

Output

  • The summary printed after compute() counts SPIs that are not appropriate for the dataset as results, not failures, as calc.summary() does.
  • Messages about a dataset with no name say "the dataset" instead of "None", and pyspi compute --quiet also hides the progress bar.

The full list is in the CHANGELOG.