windowed_log_signature¶
Sliding-window log-signatures via windowed signatures + projection.
Windows are formed with size=window_size and step=hop_size.
Signatures are obtained using
windowed_signature
(Chen reuse of streaming prefixes), then converted to log-signatures and
projected to the requested basis.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
Tensor
|
Tensor of shape |
required |
depth
|
int
|
Maximum depth to truncate log-signature computation. The output dimension
is |
required |
window_size
|
int
|
Size of the window to use for the signature. |
required |
hop_size
|
int
|
Hop size to use for the signature. |
required |
mode
|
str
|
Basis for the log-signature coordinates: "words" (default) or "hall".
"words" is only available with |
'words'
|
Returns:
| Type | Description |
|---|---|
Tensor
|
Tensor of shape |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in src/tensorsig/classical/log_signature.py
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 | |