Gaussian process regression (GPR) on
- control over the design of experiments, i.e., sampling at fixed locations, and
- Using special kernel forms that are practically performant but generally uncommon, e.g., one cannot use common kernels such as the Squared Exponential, Matern, or Rational Quadratic.
pip install fastgps
The FastGPs documentation contains a detailed package reference documenting classes including thorough doctests. A number of example notebooks are also rendered into the documentation from fastgps/docs/examples/
. We recommend reading Aleksei Sorokin's slides on Fast GPR which he presented at MCM 2025 Chicago.
We currently support two flavors of fast GPR:
- Pairing integration lattice point sets with shift-invariant (SI) kernels which creates circulant Gram matrices that are diagonalizable by Fast Fourier Transforms (FFTs). SI kernels are periodic and arbitrarily smooth.
- Pairing digital nets (e.g. Sobol' point sets) with digitally-shift-invariant (DSI) kernels which creates Gram matrices diagonalizable by Fast Walsh Hadamard Transforms (FWHTs). DSI kernels are discontinuous, yet versions exist for which the corresponding Reproducing Kernel Hilbert Space (RKHSs) contains arbitrarily smooth functions.
A reference standard GP implementation is available alongside the fast GPR implementations. All GPR methods support:
- GPU computations as
FastGPs
is built on thePyTorch
stack. - Batching of both outputs (for functions with tensor outputs) and parameters (with flexibly shareable parameters among batched outputs).
- Multi-Task GPs with product kernels and generalized fast multi-task GPR.
- Derivative Information of arbitrarily high order.
- Bayesian Cubature for approximating integrals or expectations.
- Flexible kernel parameterizations from the
QMCPy
package. - Efficient variance projections for determining if and where to sample next.
This package is based off of the following publications
-
Jagadeeswaran, Rathinavel, and Fred J. Hickernell. "Fast automatic Bayesian cubature using lattice sampling." Statistics and Computing 29.6 (2019): 1215-1229.
-
Jagadeeswaran, Rathinavel, and Fred J. Hickernell. "Fast automatic Bayesian cubature using Sobol’ sampling." Advances in Modeling and Simulation: Festschrift for Pierre L'Ecuyer. Cham: Springer International Publishing, 2022. 301-318.
-
Rathinavel, Jagadeeswaran. Fast automatic Bayesian cubature using matching kernels and designs. Illinois Institute of Technology, 2019.