Skip to main content

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


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.4.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

sigkerax-0.1.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file sigkerax-0.1.4.tar.gz.

File metadata

  • Download URL: sigkerax-0.1.4.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

Hashes for sigkerax-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a642198096a477fe5195e14304f6c25ccd0d5cff4d1940acceb1e742e9f59a3e
MD5 977d942c5006b32914df23f5a5f3c98f
BLAKE2b-256 949e97f8cdc4dae029b22a88548fd8863cc9ba73211fec187d1542352eb577af

See more details on using hashes here.

File details

Details for the file sigkerax-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sigkerax-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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

Hashes for sigkerax-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 081b2f9234eda65e040e0527e961c247ab3916c25aef406d64712530c910cf67
MD5 603772a7cc6ac8d4a7adefc5dc754236
BLAKE2b-256 e68849fce2e04274273cabbfa7a97b04a883324dc150ed0bce14e758785d5bca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page