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
key1, key2, key3 = jax.random.split(jax.random.PRNGKey(0), num=3)
batch_dim1, batch_dim2, length1, length2, channels = 20, 50, 100, 200, 10
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)
scales = jax.random.exponential(key3, shape=(10,))
signature_kernel = SigKernel(ds=1e-3, dt=1e-3, static_kernel_kind="linear", scales=scales, add_time=False)
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.5.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

sigkerax-0.1.5-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sigkerax-0.1.5.tar.gz
  • Upload date:
  • Size: 9.4 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.5.tar.gz
Algorithm Hash digest
SHA256 913ee72f3735177b2e405742201eb92799134e286131e979faba8d84d44837de
MD5 e121dafc47127ddc6bc41f3494fc92cf
BLAKE2b-256 43d85d53ae45998d861da183dbdfc60c4cbf9e3d5d36a624791242d0f1058ae0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sigkerax-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8a9f425ecef2b4baf6142b13dd0b29b4d11e4e5fb0f41554294a04cd9b22e52e
MD5 6ba75f01c7ff75cddc5d1b9b26c20243
BLAKE2b-256 603d2c2e0365daf9d090f819fb634faf2f0e34c5a1590b38237cdc6c0c1d0cd6

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