tensorsig.offset_coded_signatures.layers¶
PyTorch layers and structured readouts for compiled local feature plans.
LocalFeatures evaluates a plan on every valid increment window;
LocalLinear adds a trainable linear readout. Fixed code matrices are
buffers and trainable maps are parameters, so device moves, state dictionaries,
optimizers, and autograd follow ordinary PyTorch conventions. Inputs must
match registered state dtype and device.
GapFactorizedVolterra is a compact structured alternative to a free
linear head on a strict polynomial plan. It factors temporal weights over
positive internal gaps and terminal lag while retaining a learned channel
tensor. Complete strict plans can use dynamic programming; genuinely
span-filtered plans use exact tuple enumeration.