Signature kernel computations via PDE solvers in JAX
Project description
Sigkerax
Sigkerax is a JAX library for signature kernels. Features include:
- Custom static kernels (at time of writing only linear and RBF kernels are implemented);
- All the benefits of working with JAX: autodiff, autoparallelism, GPU/TPU support etc.
Installation
pip install sigkerax
Requires Python 3.8+, JAX 0.4.11+.
Documentation
Coming soon...
Quick example
Lineax can solve a least squares problem with an explicit matrix operator:
import jax
from sigkerax.sigkernel import SigKernel
signature_kernel = SigKernel(ds=1e-3, dt=1e-3, static_kernel_kind="linear", scale=1e-1, add_time=False)
batch_dim1, batch_dim2, length1, length2, channels = 20, 50, 100, 200, 10
key1, key2 = jax.random.split(jax.random.PRNGKey(0))
first_batch_paths = jax.random.normal(key1, shape=(batch_dim1, length1, channels)).cumsum(axis=1)
second_batch_paths = jax.random.normal(key2, shape=(batch_dim2, length2, channels)).cumsum(axis=1)
signature_kernel_matrix = signature_kernel.kernel_matrix(first_batch_paths, second_batch_paths)
Other signature libraries in JAX
Signax: signatures.
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
sigkerax-0.1.3.tar.gz
(9.3 kB
view details)
Built Distribution
sigkerax-0.1.3-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file sigkerax-0.1.3.tar.gz
.
File metadata
- Download URL: sigkerax-0.1.3.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.12 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 024d924289b6be5ecb2b830f3d697259eb3ea43831986da88447cb68da4e22a2 |
|
MD5 | a68712adbc958a3b2d10d2bd668774b0 |
|
BLAKE2b-256 | 79e06eea121f2a0c9c27fe6e729b6b408bc083f1ce6269054406e54885a2561b |
File details
Details for the file sigkerax-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: sigkerax-0.1.3-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.9.12 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7bba754d511d766ae2d39cee4f32e6bd8afaa5c91f9f872af2bf1b0e233e059 |
|
MD5 | 81cca85b010c5d9e86c67747b83553a9 |
|
BLAKE2b-256 | ce6b60503db80057a6b47ee427c58e574cc16e740eeb061e592e8c3c17b8d6ff |