mvtsa.representation.signature_features#

mvtsa.representation.signature_features(X, depth=2, add_time=True, lead_lag=False)[source]#

Truncated path signature (levels 1..``depth``, depth <= 3) of a multivariate series viewed as a piecewise linear path.

Level 1 holds the total increments, level 2 the signed areas and co-movements of the channel pairs, level 3 their third-order iterated integrals. The signature is computed exactly with Chen’s identity: for a linear piece with increment \(\Delta\) the signature is \((\Delta,\Delta^{\otimes2}/2,\Delta^{\otimes3}/6)\).

Parameters:
add_timebool

Append normalized time as a channel (makes the signature sensitive to the speed of the path).

lead_lagbool

Lead–lag transform (captures quadratic variation).