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
key1, key2, key3 = jax.random.split(jax.random.PRNGKey(0), num=3)
batch_X, batch_Y, length_X, length_Y, channels = 20, 50, 100, 200, 10
X = 1e-1 * jax.random.normal(key1, shape=(batch_X, length_X, channels)).cumsum(axis=1)
Y = 1e-1 * jax.random.normal(key2, shape=(batch_Y, length_Y, channels)).cumsum(axis=1)
scales = jax.random.exponential(key3, shape=(10,))
signature_kernel = SigKernel(refinement_factor=2, static_kernel_kind="linear", scales=scales, add_time=False)
signature_kernel_matrix = signature_kernel.kernel_matrix(X, Y)
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.2.0.tar.gz
(9.3 kB
view details)
Built Distribution
sigkerax-0.2.0-py3-none-any.whl
(10.7 kB
view details)
File details
Details for the file sigkerax-0.2.0.tar.gz
.
File metadata
- Download URL: sigkerax-0.2.0.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 | 90581cbf24394ed0f47097069d42fbfce712d2c3add38a69c03b1c28c00f47ce |
|
MD5 | 328ae122fab5cdb1f176a149dbe48e61 |
|
BLAKE2b-256 | 71363661bc82b6631e3943d7b2c7556e4bcaa34cc52b267d339424d5d807361b |
File details
Details for the file sigkerax-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: sigkerax-0.2.0-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 | 090c1048233594780d2a28bc1c02554db1255eb2b7aca72f0b4a655312ee0dfd |
|
MD5 | 5cdf45f89699a52184e27ee79286ca85 |
|
BLAKE2b-256 | e1a55d6d99834d192162a924e9198fdd3422df8bd2d4f4f0e1b9bb011d6d214f |