gammy.formulae

gammy.formulae

Formula type definition and constructors

Classes

Formula(terms, prior)

Basis manipulation and design matrix creator

Functions

BSpline1d(grid[, order, extrapolate, prior, …])

B-spline basis on a fixed one-dimensional grid

ExpSineSquared1d(grid, corrlen, sigma, period)

Squared sine exponential kernel formula for periodic terms

ExpSquared1d(grid, corrlen, sigma[, prior, …])

Squared exponential kernel formula

Flatten(formula[, prior])

Flatten the terms of a given formula

FlippedReLU(grid[, prior])

Mirrored ReLU basis

Function(function, prior)

Construct a formula from a single function

Gaussian1d()

Kron(a, b)

Tensor product of two Formula terms

OrnsteinUhlenbeck1d(grid, corrlen, sigma[, …])

Ornstein-Uhlenbeck kernel formula

Polynomial(degrees[, prior])

RationalQuadratic1d(grid, corrlen, sigma, alpha)

Rational quadratic kernel formula

ReLU(grid[, prior])

Rectified linear unit shaped basis

Scalar([prior])

Scalar formula

Sum(formulae[, prior])

Sum (concatenate) many formulae

TanH()

WhiteNoise1d(grid, sigma[, prior, mu_basis, …])

White noise kernel formula

create_from_kernel1d(kernel)

Create formula from bivariate GP kernel function