Power-series based computation of Signature Kernels
Using ADM-derived Neumann series to compute signature kernels.
Installation
pip install git+https://github.com/geekbeast/powersig.git
Requires Python 3.12+
Requires PyTorch 2.5+, JAX 0.6.0+, or cupy 13.4.1+ depending on which implementation you prefer.
Getting Started
import jax.numpy as jnp
from powersig.jax.utils import fractional_brownian_motion
from powersig.jax.algorithm import PowerSigJax
def main():
# Generate fBM paths
n_steps = 1000
n_paths = 2
hurst = 0.7
# Generate fBM using the jax wrapper
fbm_paths, dt = fractional_brownian_motion(
n_steps=n_steps,
n_paths=n_paths,
hurst=hurst,
dim=1
)
# Initialize PowerSigJax with polynomial order 8
powersig = PowerSigJax(order=8)
# Compute the signature kernel
kernel_matrix = powersig(fbm_paths)
print("Shape of fBM paths:", fbm_paths.shape)
print("Shape of kernel matrix:", kernel_matrix.shape)
print("\nKernel matrix:")
print(kernel_matrix)
if __name__ == "__main__":
main()
This example is also available in the repo under examples.
Metadata
Release files for powersig 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| powersig-1.0.0.tar.gz | 48.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| powersig-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 85.8 kB
Release files / powersig-1.0.0.tar.gz
| Download URL | powersig-1.0.0.tar.gz |
|---|---|
| Size | 48.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d5afdf02299a8f94527bdf6e13beb5eeb1aa22fdca32b91ed4dc3f433f8bd0e
|
|
BLAKE2b-256 checksum How to use checksums |
a6865e641afe26cbf51c3cc9a063e849e103db53797c0dc441ff30a480e5450a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 6, 2026.
Transparency logRelease files / powersig-1.0.0-py3-none-any.whl
| Download URL | powersig-1.0.0-py3-none-any.whl |
|---|---|
| Size | 37.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a69eb14eea43ee8e6d89dcfdff5a2c795cc1a3ba19348a5675ef6e272b2cfa9
|
|
BLAKE2b-256 checksum How to use checksums |
6287c6caab98100218068b79aba76ba32d04e43b8b8a828c4c667d4d8b9e89e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 6, 2026.
Transparency log