WindowedLogSignature¶
Bases: Module
A windowed logsignature transform for torch.nn.Sequential.
Compose arbitrary path augmentations before this module, for example
nn.Sequential(fir, products, WindowedLogSignature(2, 5)). Augmentations
see the full path before windows are extracted. The transform itself does
not impose causality on preceding modules.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
depth
|
int
|
Positive logsignature truncation depth. |
required |
window_size
|
int
|
Number of path points per window (at least two). |
required |
hop_size
|
int
|
Number of points between window starts. |
1
|
mode
|
(words, hall)
|
Logsignature coordinate basis. |
"words"
|
Source code in src/tensorsig/classical/windows.py
forward ¶
Map path points (B, L, C) to window coordinates (B, N, D).