GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - stojl/SigPDE: A Python package for efficient implementations of the signature kernel

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
sigpde
sigpde
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

SigPDE

SigPDE is a Python package for efficient computation of the untruncated signature kernel by solving a Goursat PDE outlined in the paper The Signature Kernel is the solution of a Goursat PDE

The package also includes implementations of the robust, untruncated signature kernel as outlined in the paper Signature moments to characterize laws of stochastic processes.

Currently, only GPU PyTorch implementations are available.


How to Use the Package

import torch
import sigpde.torch as sig

# Parameters
batch_size = 30
length = 50
dim = 30
dyadic_order = 2

# Sample data on GPU
x = torch.randn((batch_size, length, dim), device='cuda')
y = torch.randn((batch_size, length, dim), device='cuda')

# Define kernels
static_kernel = sig.kernels.LinearKernel()
kernel = sig.SigPDE(static_kernel, dyadic_order)
robust_kernel = sig.RobustSigPDE(static_kernel, dyadic_order)

# Pairwise computation
kernel.pairwise(x, y)
kernel.pairwise(x)

robust_kernel.pairwise(x, y)
robust_kernel.pairwise(x)

# Gram matrix computation
kernel.gram(x, y)
kernel.gram(x)

robust_kernel.gram(x)
robust_kernel.gram(x, y)

# Compute normalization factors with the robust kernel
robust_kernel.normalization(x)

# Custom normalization function
# Default is: 2 - 1 / (1 + log(x))
# Must satisfy: f(x) <= x for all x >= 1
def my_normalizer(x):
    return 2 - 1 / x.pow(0.1)

# Pairwise computation with custom normalizer
robust_kernel.pairwise(x, normalizer=my_normalizer)

References

  1. Salvi et al., 2021 - "The Signature Kernel Is the Solution of a Goursat PDE"
  2. Chevyrev & Oberhauser, 2022 - "Signature moments to characterize laws of stochastic processes"

About

A Python package for efficient implementations of the signature kernel

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.