Signature Kernel Power Series Library
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file powersig-1.0.0.tar.gz.
File metadata
- Download URL: powersig-1.0.0.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d5afdf02299a8f94527bdf6e13beb5eeb1aa22fdca32b91ed4dc3f433f8bd0e
|
|
| MD5 |
8a455981f4a7620b6fa4cc5dadd98b81
|
|
| BLAKE2b-256 |
a6865e641afe26cbf51c3cc9a063e849e103db53797c0dc441ff30a480e5450a
|
Provenance
The following attestation bundles were made for powersig-1.0.0.tar.gz:
Publisher:
publish.yml on geekbeast/powersig
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
powersig-1.0.0.tar.gz -
Subject digest:
7d5afdf02299a8f94527bdf6e13beb5eeb1aa22fdca32b91ed4dc3f433f8bd0e - Sigstore transparency entry: 1453208842
- Sigstore integration time:
-
Permalink:
geekbeast/powersig@c64af2c586ec5c09f37716577c91f279bb594b79 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/geekbeast
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c64af2c586ec5c09f37716577c91f279bb594b79 -
Trigger Event:
workflow_run
-
Statement type:
File details
Details for the file powersig-1.0.0-py3-none-any.whl.
File metadata
- Download URL: powersig-1.0.0-py3-none-any.whl
- Upload date:
- Size: 37.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a69eb14eea43ee8e6d89dcfdff5a2c795cc1a3ba19348a5675ef6e272b2cfa9
|
|
| MD5 |
bdd3ac99585f1cf52a646bd91ea3cc6e
|
|
| BLAKE2b-256 |
6287c6caab98100218068b79aba76ba32d04e43b8b8a828c4c667d4d8b9e89e9
|
Provenance
The following attestation bundles were made for powersig-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on geekbeast/powersig
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
powersig-1.0.0-py3-none-any.whl -
Subject digest:
5a69eb14eea43ee8e6d89dcfdff5a2c795cc1a3ba19348a5675ef6e272b2cfa9 - Sigstore transparency entry: 1453208976
- Sigstore integration time:
-
Permalink:
geekbeast/powersig@c64af2c586ec5c09f37716577c91f279bb594b79 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/geekbeast
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c64af2c586ec5c09f37716577c91f279bb594b79 -
Trigger Event:
workflow_run
-
Statement type: