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_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


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

Uploaded Source

Built Distribution

sigkerax-0.1.6-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sigkerax-0.1.6.tar.gz
  • Upload date:
  • Size: 9.5 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.6.tar.gz
Algorithm Hash digest
SHA256 87569eecc936fbedec83fc0eebc7c8b6bbd2f10d37f166246361ca0cf254e1fa
MD5 b896ed235b50bd93e3ae087edb20f4c6
BLAKE2b-256 8bf486a769ec81819178bd4828692cc2fef512f4fa404dc2e225fa14906b326d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sigkerax-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 10.9 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1e312be9aa49534fca1ba9a4f3594c1b37b4bcea7ef9ce46e88d78769431ec04
MD5 c40aed893ea98b46ced4b49aa581ae50
BLAKE2b-256 85a5ae5ad5e5d687cd71b2d0ddb7b1c32fd0e5ef5fc52615d6aa373bd4f9535b

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