Basis Functions
Hall basis (classical)
log_signatures_pytorch.hall_projection.hall_basis(width, depth)
Return Hall basis elements up to depth over an alphabet of size width.
The Hall basis is a particular basis for the free Lie algebra. Elements are ordered first by depth, then lexicographically by the recursive Hall ordering. Degree-1 elements are labeled 1..width and higher degrees are nested tuples representing Lie brackets.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
width
|
int
|
Size of the alphabet (path dimension). Must be >= 1. |
required |
depth
|
int
|
Maximum depth to generate basis elements. Must be >= 1. |
required |
Returns:
| Type | Description |
|---|---|
List[HallBasisElement]
|
Hall basis elements, where each element is either an integer (degree 1) or a nested tuple representing a Lie bracket (higher degrees). |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/log_signatures_pytorch/hall_projection.py
log_signatures_pytorch.hall_projection.logsigdim(width, depth)
log_signatures_pytorch.hall_projection.logsigkeys(width, depth)
Human-readable labels for Hall basis elements (esig-compatible).
Source code in src/log_signatures_pytorch/hall_projection.py
Lyndon “words” basis (default for log_signature)
log_signatures_pytorch.lyndon_words.lyndon_words(width, depth)
cached
Lyndon words up to depth in Signatory-compatible ordering.
Source code in src/log_signatures_pytorch/lyndon_words.py
log_signatures_pytorch.lyndon_words.logsigdim_words(width, depth)
Dimension of the truncated log-signature in the Lyndon "words" basis.
log_signatures_pytorch.lyndon_words.logsigkeys_words(width, depth)
Human-readable labels for the Lyndon "words" basis (Signatory style).