Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Capability index

Every public name in the six indexed pyrox packages (487 of them), each listed once at its public home and grouped by the module that defines it, with the first sentence of its docstring; then the public API of gaussx, kernellib, geonnax and functax, which the packages build on. Search this page before writing a helper: if what you need is here, compose it; if it is almost here, extend it where it lives. Regenerate with make capabilities after changing a public API (packages/pyrox/tests/test_capabilities.py checks it is current).

pyrox

pyrox._core

One per-call site cache across several calls of a PyroxModule, and freezing. (pyrox._core.context)

NameKindWhat it does
call_contextfunctionHold one per-call site cache open for module.
call_contextsfunctionHold one per-call site cache open for each distinct module.
freezefunctionmodule.frozen() under one call_context, or module if it cannot.

Declarative wrappers for NumPyro param and sample sites. (pyrox._core.descriptors)

NameKindWhat it does
PyroxParamclassLightweight metadata container for a parameter site.
PyroxSampleclassLightweight metadata container for a random sample site.

Parameterized base class for GP-style modules. (pyrox._core.parameterized)

NameKindWhat it does
ParameterizedclassShared base for modules with priors, constraints, and mode switching.

PyroxModule and pyrox_method — Equinox-to-NumPyro bridge primitives. (pyrox._core.pyrox_module)

NameKindWhat it does
PyroxModuleclassEquinox module with NumPyro site registration and per-call caching.
pyrox_methodfunctionWrap a method so its body runs inside the module’s per-call context.

pyrox.inference

Ensemble-of-MAP / ensemble-of-VI primitives. (pyrox.inference._ensemble)

NameKindWhat it does
EnsembleMAPclassNumPyro-like ensemble MAP/MLE runner.
EnsembleResultclassOutput of a full EnsembleMAP.run / EnsembleVI.run.
EnsembleStateclassStacked state for an ensemble of optimizer runs.
EnsembleVIclassNumPyro-like ensemble variational-inference runner.
ensemble_initfunctionInitialize an ensemble of (params, opt_state) by vmap over keys.
ensemble_lossfunctionBuild the filter_value_and_grad loss from a log-joint.
ensemble_mapfunctionOne-shot wrapper around EnsembleMAP.
ensemble_predictfunctionVmap predict_fn over the leading ensemble axis of params.
ensemble_stepfunctionPerform one ensemble update step on a batch.
ensemble_vifunctionOne-shot wrapper around EnsembleVI.

Per-parameter-group optimizer helper. (pyrox.inference._param_groups)

NameKindWhat it does
param_group_optimizerfunctionApply a different optimizer to each labelled parameter group.

pyrox.likelihoods

NameKindWhat it does
AbstractObservationclassObservation model p(y∣η,θ)p(y \mid \eta, \theta) with its own hyperparameters.
DistLikelihoodclassObservation model over any NumPyro distribution, p(yi∣ηi,θ)p(y_i \mid \eta_i, \theta).
GaussianLikelihoodclassGaussian observation model p(y∣f)=N(y∣f,σ2)p(y \mid f) = N(y \mid f, \sigma^2).
GuideclassAbstract base for variational posterior families.
LikelihoodclassAbstract base for observation models.
likelihood_accepts_inputsfunctionWhether lik.log_prob takes the optional trailing X.

pyrox-gp

pyrox_gp

Sparse SVGP variational guide families — concrete Guide types. (pyrox_gp._guides)

NameKindWhat it does
DeltaGuideclassPoint-mass (MAP-style) variational posterior over inducing values.
FullRankGuideclassFull-rank Gaussian variational posterior over inducing values u.
MeanFieldGuideclassDiagonal Gaussian variational posterior over inducing values u.
NaturalGuideclassNatural-parameter Gaussian variational posterior over inducing values.
WhitenedGuideclassWhitened-coordinate Gaussian variational posterior over inducing values.

Inter-domain inducing-feature families for sparse GPs. (pyrox_gp._inducing)

NameKindWhat it does
DecoupledInducingFeaturesclassDecoupled mean / covariance inducing-feature bases (Cheng & Boots 2017).
FourierInducingFeaturesclassVFF — Variational Fourier inducing features on [−L,L]D[-L, L]^D.
InducingFeaturesclassProtocol for inter-domain inducing features.
LaplacianInducingFeaturesclassInducing features from low-frequency graph Laplacian eigenvectors.
SlepianInducingFeaturesclassRegion-localized Slepian inducing features on S2S^2.
SphericalHarmonicInducingFeaturesclassVISH — inducing harmonics on S2S^2 (Dutordoir et al. 2020).
funk_hecke_coefficientsfunctionDeprecated: use kernellib.funk_hecke_coefficients on a frozen kernel.

Choosing inducing inputs from the data (P3). (pyrox_gp._inducing_init)

NameKindWhat it does
init_inducingfunctionInducing inputs (M, D): rows of X picked by kernellib.select_landmarks.

Sparse variational GP inference entry points. (pyrox_gp._inference)

NameKindWhat it does
ConjugateVIclassNatural-gradient / CVI update for sparse variational GPs.
svgp_elbofunctionStructured SVGP ELBO as a differentiable scalar.
svgp_factorfunctionRegister the structured SVGP ELBO as a NumPyro factor site.

Advanced GP inference strategies for non-conjugate likelihoods. (pyrox_gp._inference_nongauss)

NameKindWhat it does
ConditionedNonGaussGPclassGP conditioned on a non-Gaussian likelihood via an advanced strategy.
ExpectationPropagationclassParallel expectation propagation (Minka 2001) with damping.
GaussNewtonInferenceclassGauss-Newton inference: Newton loop with PSD-projected curvature.
LaplaceInferenceclassLaplace approximation via Newton iteration on the log posterior.
PosteriorLinearizationclassIterated statistical-linearization site updates.
QuasiNewtonInferenceclassMAP optimization via L-BFGS, Laplace covariance at convergence.
gp_laplace_factorfunctionRegister the Laplace approximate GP evidence with NumPyro.

Concrete kernel classes — Parameterized wrappers over the math primitives. (pyrox_gp._kernels)

NameKindWhat it does
ConstantclassConstant kernel k(x, x') = sigma^2.
CosineclassCosine kernel sigma^2 cos(2 pi ||x - x'|| / period).
LinearclassLinear kernel sigma^2 x^T x' + bias.
MaternclassMatern kernel with nu in {0.5, 1.5, 2.5}.
PeriodicclassPeriodic (MacKay) kernel.
PolynomialclassPolynomial kernel sigma^2 (x^T x' + bias)^degree.
RBFclassRadial basis function (squared exponential) kernel.
RationalQuadraticclassRational quadratic kernel.
WhiteclassWhite-noise kernel sigma^2 delta(x, x').

Collapsed latent-factor regression — the decoder is marginalized, not fixed. (pyrox_gp._latent_factor)

NameKindWhat it does
collapsed_lfr_log_probfunctionLog-likelihood with the linear decoder marginalized analytically.
decoder_posteriorfunctionClosed-form matrix-normal posterior over the decoder.
lfr_predictive_momentsfunctionExact moments of the product of two independent Gaussians.
warp_to_basefunctionMap observations into the space where the factor model is linear.
warped_decoder_posteriorfunctionMatrix-normal decoder posterior, read in the warped space.
warped_lfr_log_probfunctionCollapsed latent-factor log-likelihood on warped observations.

Model surface for collapsed latent-factor regression. (pyrox_gp._latent_factor_models)

NameKindWhat it does
ConditionedLatentFactorGPclassLatent-factor posterior — MAP latents plus the decoder posterior.
LatentFactorGPPriorclassGP latent factors with an analytically marginalized linear decoder.
latent_total_correlationfunctionTotal correlation of the fitted latent factors.
lfr_factorfunctionRegister the collapsed latent-factor log-likelihood with NumPyro.
lfr_modelfunctionMAP-over-latents collapsed latent-factor regression model.

Data-driven initialisation of GPLVM-style latent variables (P1). (pyrox_gp._latent_init)

NameKindWhat it does
latent_initfunctionInitial latents (N, n_latent) for a GPLVM or latent-factor model.

Observation models for GP inference. (pyrox_gp._likelihoods)

NameKindWhat it does
BernoulliLikelihoodclassBinary classification likelihood with logit link, over gaussx.BernoulliLikelihood.
GaussianLikelihoodclassGaussian observation model p(y∣f)=N(y∣f,σ2)p(y \mid f) = N(y \mid f, \sigma^2), over gaussx.GaussianLikelihood.
HeteroscedasticGaussianLikelihoodclassGaussian regression with input-dependent noise, over gaussx.HeteroscedasticGaussianLikelihood.
PoissonLikelihoodclassCount likelihood with log link, over gaussx.PoissonLikelihood.
SoftmaxLikelihoodclassMulti-class classification likelihood with softmax link, over gaussx.SoftmaxLikelihood.
StudentTLikelihoodclassHeavy-tailed regression p(y∣f)=StudentT(ν,f,σ)p(y \mid f) = \mathrm{StudentT}(\nu, f, \sigma), over gaussx.StudentTLikelihood.

Model-facing GP entry points — GPPrior, ConditionedGP, and NumPyro hooks. (pyrox_gp._models)

NameKindWhat it does
ConditionedGPclassGP conditioned on Gaussian-likelihood training observations.
GPPriorclassFinite-dimensional GP prior over a fixed training input set.
GradientPosteriorclassGaussian posterior over ∇f\nabla f at MM test points (point-major).
gp_factorfunctionRegister the collapsed GP log marginal likelihood with NumPyro.
gp_samplefunctionSample a latent function f at the prior’s training inputs.

Multi-output Gaussian-process kernels and inducing structures. (pyrox_gp._multi_output)

NameKindWhat it does
ICMKernelclassIntrinsic coregionalization model with one shared latent kernel.
LMCKernelclassLinear model of coregionalization for vector-valued GPs.
MultiOutputInducingVariablesclassShared inducing-point structure for LMC-style sparse workflows.
OILMMKernelclassOrthogonal instantaneous linear mixing model.
SharedInducingPointsclassShared inducing inputs for multi-output latent GP collections.

Multi-output GP model entry points — exact and sparse variational. (pyrox_gp._multi_output_models)

NameKindWhat it does
ConditionedMultiOutputGPclassMulti-output GP conditioned on Gaussian-likelihood observations.
ConditionedMultiOutputSparseGPclassA sparse multi-output GP conditioned through a fitted guide.
ConditionedOILMMGPclassOILMM posterior — Q conditioned scalar GPs plus the mixing.
MultiOutputGPPriorclassFinite-dimensional multi-output GP prior over fixed training inputs.
MultiOutputSparseGPPriorclassSparse multi-output GP prior over shared inducing inputs.
OILMMGPPriorclassOrthogonal-mixing multi-output GP prior with a projected exact posterior.
mo_gp_factorfunctionRegister the collapsed multi-output GP marginal likelihood with NumPyro.
mo_svgp_elbofunctionStructured multi-output SVGP ELBO as a differentiable scalar.
mo_svgp_factorfunctionRegister the multi-output SVGP ELBO as a NumPyro factor site.
oilmm_factorfunctionRegister the OILMM collapsed log marginal likelihood with NumPyro.

Pathwise GP posterior samplers via Matheron’s rule. (pyrox_gp._pathwise)

NameKindWhat it does
DecoupledPathwiseSamplerclassSparse/decoupled pathwise sampler with RFF prior + inducing update.
PathwiseFunctionclassCallable posterior function draw(s) produced by a pathwise sampler.
PathwiseSamplerclassExact-GP pathwise posterior sampler using Matheron’s rule.

The linear-algebra choices of a GP prior, and two ready-made sets of them. (pyrox_gp._solvers)

NameKindWhat it does
bbmm_solverfunctionBBMM with a low-rank preconditioner (pyrox#557).
matfree_solverfunctionCG and a matfree-backed log-determinant, preconditioned (pyrox#557).
preconditioned_cg_solverfunctionDeprecated alias of matfree_solver, with its old arguments and defaults.

Sparse GP prior — inducing-input variational foundation. (pyrox_gp._sparse)

NameKindWhat it does
ConditionedSparseGPclassA sparse GP conditioned through a fitted guide on its inducing values.
SparseGPPriorclassGP prior parameterized over inducing inputs Z.

Transformed Gaussian processes: a GP composed with a monotone warp. (pyrox_gp._warped)

NameKindWhat it does
WarpedGaussianLikelihoodclassp(y∣f)=N(y∣G(f),σ2)p(y \mid f) = N(y \mid G(f), \sigma^2) -- the transformed-GP model.
warped_predictive_momentsfunctionMoments of y=G(f)+ϵy = G(f) + \epsilon under q(f)q(f), by quadrature.

Re-exported from upstream

NameKindWhat it does
KernelclassRe-exported from kernellib.

pyrox-nn

pyrox_nn

Bayesian Neural Field (BNF) layers — port of Google’s bayesnf. (pyrox_nn._bnf)

NameKindWhat it does
BayesianNeuralFieldclassThe full Bayesian Neural Field architecture, wrapping geonnax.NeuralFieldMLP.
FourierFeaturesclassPer-input dyadic-frequency Fourier basis.
InteractionFeaturesclassElement-wise products on selected pairs of input columns.
SeasonalFeaturesclassPeriod-and-harmonic cos/sin basis on a scalar time axis.
StandardizationclassApply a fixed-coefficient affine standardization.

Bayesian conditioning primitives for pyrox_nn. (pyrox_nn._conditioning)

NameKindWhat it does
BayesianAffineModulationclassAffineModulation of gauss-flows-maps with Normal priors on the FiLM generator.
BayesianConcatConditionerclassConcatConditioner of gauss-flows-maps with Normal priors on the projection.
BayesianHyperLinearclassHyperLinear of gauss-flows-maps with Normal priors on the generator only.
ConditionedRFFNetclassConditional analogue of pyrox_nn.RandomKitchenSinks.
HyperFourierFeaturesclassRandom Fourier features with (W, b, log_lengthscale) from a parameter net.

Bayesian / uncertainty-aware dense layers. (pyrox_nn._dense)

NameKindWhat it does
DenseDVIclassDeterministic Variational Inference dense layer (Wu et al., 2018).
DenseFlipoutclassBayesian dense layer with Flipout sign-flip structure.
DenseHierarchicalclassHierarchical Bayesian dense layer with multiplicative shrinkage.
DenseNCPclassNoise Contrastive Prior dense layer (Hafner et al., 2019).
DenseReparameterizationclassBayesian dense layer via the reparameterization trick.
DenseVariationalclassDense layer with a user-supplied prior factory.
DenseVariationalDropoutclassSparse variational dropout dense layer.
NCPNormalOutputclassOutput-side Noise Contrastive Prior layer (Hafner et al., 2018).

Ensemble-style layers for pyrox_nn. (pyrox_nn._ensemble)

NameKindWhat it does
DenseRank1classRank-1 ensemble dense layer.
LayerNormEnsembleclassPer-ensemble-member LayerNorm.
MultiHeadAttentionBEclassMulti-head attention with BatchEnsemble rank-1 projections.

Pure-JAX feature helpers and Bayesian RFF feature layers. (pyrox_nn._features)

NameKindWhat it does
ArcCosineFourierFeaturesclassRandom features for the arc-cosine kernel (Cho & Saul, 2009).
HSGPFeaturesclassHilbert-Space Gaussian Process feature layer (Riutort-Mayol et al., 2023).
LaplaceCosineFeaturesclassCosine-bias variant of random Fourier features for the Laplace kernel.
LaplaceFourierFeaturesclassSSGP-style RFF layer with Laplace (Matern-1/2) spectral density.
MaternCosineFeaturesclassCosine-bias variant of random Fourier features for the Matern kernel.
MaternFourierFeaturesclassSSGP-style RFF layer with Matern spectral density.
RBFCosineFeaturesclassCosine-bias variant of random Fourier features for the RBF kernel.
RBFFourierFeaturesclassSSGP-style RFF layer with RBF spectral density.
RandomKitchenSinksclassRandom Kitchen Sinks: RFF + a learned linear head.
SphericalHarmonicFeaturesclassWeight-space GP on the sphere S2S^2 from real spherical harmonics.
VariationalFourierFeaturesclassVSSGP — RFF with a learnable variational posterior over frequencies.

Deterministic neural-network primitives re-exported from geonnax. (pyrox_nn._geonnax)

NameKindWhat it does
lonlat_to_cartesian3dfunctionLift lon/lat coordinates onto the unit sphere.

Heteroscedastic output layers (Collier et al., 2021). (pyrox_nn._heteroscedastic)

NameKindWhat it does
GaussianRegressionHeadclassBayesian heteroscedastic regression head (mean plus log-scale).
MCSigmoidDenseFAclassHeteroscedastic multi-label output layer (FA noise + sigmoid).
MCSoftmaxDenseFAclassHeteroscedastic multi-class output layer (FA noise + softmax).

Post-hoc last-layer Laplace approximation with a GGN Hessian. (pyrox_nn._laplace)

NameKindWhat it does
LastLayerLaplaceclassGaussian posterior over a selected parameter group of a fitted model.
last_layer_laplacefunctionFit a post-hoc GGN Laplace posterior over a parameter group.

Bayesian Multiplicative Filter Networks. (pyrox_nn._mfn)

NameKindWhat it does
BayesianFourierNetclassFourierNet with Bayesian priors on all filter and linear weights.
BayesianGaborNetclassGaborNet with Bayesian priors on all filter and linear weights.

Bayesian SIREN — sinusoidal network with regime-scaled Normal priors. (pyrox_nn._siren)

NameKindWhat it does
BayesianSIRENclassSIREN with regime-scaled Normal priors on all layer weights.

Bayesian Slepian positional encoder. (pyrox_nn._slepian)

NameKindWhat it does
BayesianSlepianEncoderclassSlepian encoder with NumPyro sites for cap radius and centre.

Spectral-Normalized Gaussian Process (SNGP) output layer. (pyrox_nn._sngp)

NameKindWhat it does
RandomFeatureGaussianProcessclassSNGP output layer (Liu et al., 2020).

Deep Variational SSGP — Bayesian wrapper around the geonnax core. (pyrox_nn._vssgp)

NameKindWhat it does
DeepVSSGPclassDeep Random Feature Expansion for Variational SSGP (Cutajar et al. 2017).

Re-exported from upstream

NameKindWhat it does
AbstractConditionerclassRe-exported from gauss_flows_maps.
AffineModulationclassRe-exported from gauss_flows_maps.
BasisTransformclassRe-exported from geonnax.
Cartesian3DEncoderclassRe-exported from geonnax.
ConcatConditionerclassRe-exported from gauss_flows_maps.
ConditionedINRclassRe-exported from geonnax.
CyclicEncoderclassRe-exported from geonnax.
Deg2RadclassRe-exported from geonnax.
FourierFilterclassRe-exported from geonnax.
FourierNetclassRe-exported from geonnax.
GaborFilterclassRe-exported from geonnax.
GaborNetclassRe-exported from geonnax.
GeoFNOclassRe-exported from geonnax.
HybridSphericalSlepianEncoderclassRe-exported from geonnax.
HyperLinearclassRe-exported from gauss_flows_maps.
HyperSIRENfunctionRe-exported from geonnax.
LaplaceRandomFeatureCovarianceclassRe-exported from geonnax.
LearnedDeformationclassRe-exported from geonnax.
LonLatScaleclassRe-exported from geonnax.
ManifoldNOclassRe-exported from geonnax.
NCPContinuousPerturbclassRe-exported from geonnax.
OrthogonalRandomFeaturesclassRe-exported from geonnax.
SIRENclassRe-exported from geonnax.
SirenDenseclassRe-exported from geonnax.
SlepianEncoderclassRe-exported from geonnax.
SphericalHarmonicEncoderclassRe-exported from geonnax.
cyclic_encodefunctionRe-exported from geonnax.
fourier_featuresfunctionRe-exported from functax.
interaction_featuresfunctionRe-exported from geonnax.
lonlat_scalefunctionRe-exported from geonnax.
mfn_forwardfunctionRe-exported from geonnax.
seasonal_featuresfunctionRe-exported from functax.
seasonal_frequenciesfunctionRe-exported from functax.
spherical_harmonic_encodefunctionRe-exported from geonnax.
standardizefunctionRe-exported from geonnax.
unstandardizefunctionRe-exported from geonnax.

pyrox_nn.api

BNFEstimator family — sklearn-style facade over the BNF stack. (pyrox_nn.api._bnf)

NameKindWhat it does
BNFEstimatorclassMAP-fit Bayesian Neural Field estimator.
BNFEstimatorMLEclassBNF estimator with prior_weight=0 (MLE).
BNFEstimatorVIclassBNF estimator using mean-field VI via ensemble_vi.
FittedBNFclassOutput of BNFEstimator.fit.

Minimal sklearn-style immutable Estimator facade. (pyrox_nn.api._estimator)

NameKindWhat it does
EstimatorBaseclassImmutable configuration for a probabilistic regression model.
FittedEstimatorclassOutput of EstimatorBase.fit.

NeuralFieldEstimator — fit any Bayesian neural field with ensembles. (pyrox_nn.api._field)

NameKindWhat it does
FittedNeuralFieldclassOutput of NeuralFieldEstimator.fit.
NeuralFieldEstimatorclassFit any Bayesian neural field with ensemble MAP or VI.

pyrox_nn.preprocessing

NameKindWhat it does
SpatiotemporalFitclassImmutable bundle of fitted feature layers + time-encoding scalars.
encode_time_columnfunctionConvert a pandas time column into a unit-scale JAX float array.
fit_spatiotemporalfunctionBuild a complete SpatiotemporalFit from a DataFrame.
fit_standardizationfunctionBuild a Standardization layer from per-column mean / std.

pyrox-lgm

pyrox_lgm

Areal (graph) components: Besag (ICAR), BYM2, proper CAR and Leroux (P7). (pyrox_lgm._components._areal)

NameKindWhat it does
BYM2classBYM2 (Riebler et al., 2016), a mixture of unstructured and ICAR effects.
BesagclassIntrinsic CAR (ICAR / Besag): precision τR\tau R, R=D−WR = D - W.
CARclassProper CAR: precision τ(D−ρW)\tau(D - \rho W), ρ∈[0,1)\rho \in [0, 1).
LerouxclassLeroux CAR: precision τ(ρR+(1−ρ)I)\tau(\rho R + (1 - \rho) I), ρ∈[0,1]\rho \in [0, 1].

Base class for latent components (P7). (pyrox_lgm._components._base)

NameKindWhat it does
AbstractComponentclassA latent field with hyperpriors and a projector to observations.

Combinators: separable Kronecker products and replicates of components (P7). (pyrox_lgm._components._combinators)

NameKindWhat it does
KroneckerclassSeparable product Q=Qmain⊗QgroupQ = Q_\text{main} \otimes Q_\text{group} (R-INLA group).
Replicateclassn_rep independent copies of a component, sharing its hyperparameters.

Generic components from a user-supplied structure (P7). (pyrox_lgm._components._generic)

NameKindWhat it does
GenericclassA field with precision τR\tau R for a user-supplied structure RR.

Markov GP component: a gaussx SDE kernel on sorted times as a GMRF (P7). (pyrox_lgm._components._markov)

NameKindWhat it does
MarkovGPclassA temporal Gaussian process with a gaussx SDE kernel, in precision form.

SPDE (Matérn) components on a finite-element mesh or a regular grid (P7). (pyrox_lgm._components._spde)

NameKindWhat it does
SPDEclassMatérn field via the SPDE, on a triangle mesh or a regular grid.

Temporal (and unstructured) components: IID, RW1, RW2 and AR1 (P7). (pyrox_lgm._components._temporal)

NameKindWhat it does
AR1classStationary AR(1), xt=ρxt−1+εtx_t = \rho x_{t-1} + \varepsilon_t.
IIDclassIndependent effects xi∼N(0,1/τ)x_i \sim \mathcal N(0, 1/\tau), i<ni < n.
RW1classFirst-order random walk, xt+1−xt∼N(0,1/τ)x_{t+1} - x_t \sim \mathcal N(0, 1/\tau).
RW2classSecond-order random walk, xt+1−2xt+xt−1∼N(0,1/τ)x_{t+1} - 2x_t + x_{t-1} \sim \mathcal N(0, 1/\tau).

An LGM conditioned at fixed hyperparameters. (pyrox_lgm._condition)

NameKindWhat it does
ConditionedLGMclassAn LGMPrior conditioned on Gaussian observations, at fixed θ\theta.
ConditionedNonGaussLGMclassAn LGMPrior conditioned under any likelihood, at fixed θ\theta.

Model diagnostics without refits: DIC, WAIC, CPO and PIT (P9). (pyrox_lgm._diagnostics)

NameKindWhat it does
DiagnosticsclassLeave-one-out and information criteria of an INLAResult.
diagnosticsfunctionDIC, WAIC, CPO and PIT of an INLAResult, with no refits.

f(...): R-INLA-style construction of a component bound to a data column (P9). (pyrox_lgm._formula)

NameKindWhat it does
ffunctionBuild a latent component named after the data column it indexes.

The inla() driver (P8). (pyrox_lgm._inla)

NameKindWhat it does
inlafunctionIntegrated nested Laplace approximation of a latent Gaussian model.

Observation models of an LGM (P8). (pyrox_lgm._likelihood)

NameKindWhat it does
Bernoulliclassy ~ Bernoulli(sigmoid(eta)), y in {0, 1}.
Binomialclassy ~ Binomial(n, sigmoid(eta)) with n = data["n_trials"].
Gaussianclassy ~ N(eta, 1/prec); prec under PCPrecision(1, 0.01).
NegativeBinomialclassy ~ NegBin(mean exp(eta), size); size under Gamma(1, 0.1).
Poissonclassy ~ Poisson(exp(eta)); put the log exposure in data["offset"].

The latent Gaussian model, LGM, and its prior, LGMPrior (P8). (pyrox_lgm._model)

NameKindWhat it does
FixedEffectsclassFixed effects β∼N(0,λ−1I)\beta \sim \mathcal N(0, \lambda^{-1} I), columns of XX.
LGMclassA latent Gaussian model: components, fixed effects and an observation model.
LGMPriorclassThe latent field of an LGM: its components and fixed effects.

NumPyro faces of an LGM: sampled components and collapsed factors. (pyrox_lgm._numpyro)

NameKindWhat it does
lgm_factorfunctionRegister an LGM’s exact log marginal under Gaussian noise with NumPyro.
lgm_laplace_factorfunctionRegister an LGM’s Laplace log marginal with NumPyro, for any likelihood.

Penalised-complexity (PC) priors (Simpson et al., 2017). (pyrox_lgm._priors._pc)

NameKindWhat it does
PCAR1RhoclassPC prior on the lag-one correlation ρ\rho of an AR(1) process.
PCBYM2PhiclassPC prior on the BYM2 mixing parameter ϕ∈(0,1)\phi \in (0, 1).
PCMaternclassJoint PC prior on the range ρ\rho and marginal sd σ\sigma of a Matérn field.
PCPrecisionclassPC prior on the precision τ\tau of a Gaussian effect.
StructureSpectrumclassSpectral measure of R∗+R_\ast^{+}, the generalised inverse of a structure.
structure_spectrumfunctionThe spectrum of R+R^{+} that PCBYM2Phi needs, computed once.

INLAResult: posterior marginals and the marginal likelihood (P8). (pyrox_lgm._result)

NameKindWhat it does
INLAResultclassWhat inla() returns.
SummaryclassPosterior summary: mean, sd and the 2.5 / 50 / 97.5 % quantiles.

pyrox-ssm

pyrox_ssm

A shared GP plus one GP per site, as one state-space model on a merged grid. (pyrox_ssm._hierarchical)

NameKindWhat it does
ConditionedSharedPlusSiteMarkovGPclassA SharedPlusSiteMarkovGPPrior conditioned on its observations.
SharedPlusSiteMarkovGPPriorclassA shared GP plus one independent GP per site, on a merged time grid.
shared_plus_site_factorfunctionRegister the log marginal of a shared GP plus one GP per site.

Site-based non-Gaussian inference for MarkovGPPrior. (pyrox_ssm._inference_nongauss_markov)

NameKindWhat it does
ConditionedNonGaussMarkovGPclassMarkov GP conditioned on a non-Gaussian likelihood via a site-based strategy.
ExpectationPropagationMarkovclassParallel Expectation Propagation for MarkovGPPrior.
GaussNewtonMarkovInferenceclassGauss-Newton (Markov) inference: Newton with a strict PSD floor.
LaplaceMarkovInferenceclassLaplace approximation for MarkovGPPrior.
PosteriorLinearizationMarkovclassPosterior linearization for MarkovGPPrior (Markov IPLF).
markov_implicit_adjointfunctionThe implicit adjoint of the Markov strategies, safe to use inside NUTS.
markov_laplace_factorfunctionRegister a non-Gaussian Markov GP’s approximate evidence with NumPyro.

Linear-Gaussian state-space prior given directly by its matrices. (pyrox_ssm._lgssm)

NameKindWhat it does
ConditionedLinearGaussianSSMclassA LinearGaussianSSMPrior conditioned on observations.
LinearGaussianSSMPriorclassPrior over a linear-Gaussian state-space model given by its matrices.
lgssm_factorfunctionRegister a linear-Gaussian SSM’s log marginal as a NumPyro factor.

Kalman-based Markov GP prior on top of the SDE-kernel surface. (pyrox_ssm._markov)

NameKindWhat it does
ConditionedMarkovGPclassMarkov GP conditioned on Gaussian-likelihood observations.
MarkovGPPriorclassLinear-time temporal GP prior over a sorted 1-D grid.
markov_gp_factorfunctionRegister the collapsed Markov-GP marginal log-likelihood with NumPyro.
markov_gp_from_innovationsfunctionLatent path of a Markov GP from whitened innovations, in linear time.
markov_gp_innovations_samplefunctionSample a Markov-GP latent path through whitened innovations.
markov_gp_samplefunctionSample a latent function f at the prior’s training times.

A nonlinear state-space model: its prior, its factor and its posterior. (pyrox_ssm._nonlinear)

NameKindWhat it does
ConditionedNonlinearGaussianSSMclassA NonlinearGaussianSSMPrior conditioned on observations.
NonlinearGaussianSSMPriorclassPrior over a nonlinear state-space model, filtered by moment matching.
nonlinear_ssm_factorfunctionRegister a nonlinear state-space model’s log likelihood as a factor.

Ragged per-site series, padded to one shape with an observation mask. (pyrox_ssm._sites)

NameKindWhat it does
ConditionedMarkovGPSitesclassA MarkovGPSitesPrior conditioned on every site’s observations.
MarkovGPSitesPriorclassA Markov GP prior over SS padded sites that share one SDE kernel.
markov_gp_sites_factorfunctionRegister the summed Markov-GP log marginal of S sites as one factor.
noncentred_log_normalfunctionA positive per-site parameter around a population value, non-centred.
pad_sitesfunctionPad ragged site series to (S, N) with strictly increasing padded times.

Sparse variational Markov-GP — inducing time points on top of an SDE prior. (pyrox_ssm._sparse_markov)

NameKindWhat it does
ConditionedSparseMarkovGPclassSparse Markov GP fitted to a guide.
SparseMarkovGPPriorclassSparse variational GP prior over an SDE kernel and inducing time grid.
sparse_markov_elbofunctionSparse variational ELBO for SparseMarkovGPPrior.
sparse_markov_factorfunctionRegister sparse_markov_elbo as a NumPyro factor site.

Re-exported from upstream

NameKindWhat it does
ConstantSDEclassRe-exported from gaussx.
CosineSDEclassRe-exported from gaussx.
IntegratedWienerSDEclassRe-exported from gaussx.
MaternSDEclassRe-exported from gaussx.
PeriodicSDEclassRe-exported from gaussx.
ProductSDEclassRe-exported from gaussx.
QuasiPeriodicSDEclassRe-exported from gaussx.
SDEKernelclassRe-exported from gaussx.
SDEParamsclassRe-exported from gaussx.
SumSDEclassRe-exported from gaussx.

pyrox_ssm.flows

NameKindWhat it does
ConditionedNormalizingKalmanclassA NormalizingKalmanPrior conditioned on observations.
NormalizingKalmanPriorclassNormalizing Kalman Filter prior over a multivariate time grid.
normalizing_kalman_factorfunctionRegister the NKF marginal log-likelihood with NumPyro.

pyrox_ssm.ensemble

NameKindWhat it does
ensemble_factorfunctionRegister the ensemble Kalman log likelihood as a NumPyro factor.

pyrox-xtreme

pyrox_xtreme.distributions

Fréchet Type II Generalized Extreme Value Distribution for NumPyro (pyrox_xtreme.distributions.frechet)

NameKindWhat it does
FrechetType2GEVDclassFréchet Type II Generalized Extreme Value Distribution for NumPyro.

Comprehensive Generalized Extreme Value Distribution (GEVD) for NumPyro (pyrox_xtreme.distributions.gevd)

NameKindWhat it does
GeneralizedExtremeValueDistributionclassGeneralized Extreme Value Distribution (GEVD) for NumPyro.

Generalized Pareto Distribution (GPD) for NumPyro (pyrox_xtreme.distributions.gpd)

NameKindWhat it does
GeneralizedParetoDistributionclassGeneralized Pareto Distribution (GPD) for NumPyro.

Gumbel Type I Generalized Extreme Value Distribution for NumPyro (pyrox_xtreme.distributions.gumbel)

NameKindWhat it does
GumbelType1GEVDclassGumbel Type I Generalized Extreme Value Distribution for NumPyro.

Weibull Type III Generalized Extreme Value Distribution for NumPyro (pyrox_xtreme.distributions.weibull)

NameKindWhat it does
WeibullType3GEVDclassWeibull Type III Generalized Extreme Value Distribution for NumPyro.

pyrox_xtreme.primitives

Pure-JAX primitives for the Fréchet (Type II) extreme value distribution. (pyrox_xtreme.primitives.frechet)

NameKindWhat it does
frechet_cdffunctionFréchet CDF.
frechet_icdffunctionFréchet quantile function.
frechet_log_probfunctionFréchet log PDF (assumes shape > 0).
frechet_meanfunctionFréchet mean (+inf when shape >= 1).
frechet_return_levelfunctionT-period return level.

Pure-JAX primitives for the Generalized Extreme Value distribution. (pyrox_xtreme.primitives.gev)

NameKindWhat it does
gev_cdffunctionCDF of the Generalized Extreme Value distribution.
gev_icdffunctionQuantile function (inverse CDF) of the GEV distribution.
gev_log_probfunctionLog PDF of the Generalized Extreme Value distribution.
gev_log_survivalfunctionLog survival function :math:\log S(x) = \log(1 - F(x)) of the GEV.
gev_meanfunctionMean of the GEV distribution (+inf when :math:\xi \ge 1).
gev_return_levelfunctionT-period return level: :math:z_T = F^{-1}(1 - 1/T).
gev_survivalfunctionSurvival function :math:S(x) = 1 - F(x) of the GEV distribution.

Pure-JAX primitives for the Generalized Pareto Distribution. (pyrox_xtreme.primitives.gpd)

NameKindWhat it does
gpd_cdffunctionCDF of the Generalized Pareto Distribution.
gpd_icdffunctionQuantile function (inverse CDF) of the GPD.
gpd_log_probfunctionLog PDF of the Generalized Pareto Distribution (loc = 0).
gpd_log_survivalfunctionLog survival :math:\log S(x) = -\tfrac{1}{\xi}\log(1 + \xi x/\sigma).
gpd_meanfunctionGPD mean: :math:\sigma / (1 - \xi) for :math:\xi < 1, else +inf.
gpd_return_levelfunctionT-period return level: :math:Q(1 - 1/T).
gpd_survivalfunctionSurvival function :math:S(x) = (1 + \xi x/\sigma)^{-1/\xi} of the GPD.

Pure-JAX primitives for the Gumbel Type I distribution. (pyrox_xtreme.primitives.gumbel)

NameKindWhat it does
gumbel_cdffunctionGumbel CDF: :math:F(x) = \exp(-\exp(-z)).
gumbel_icdffunctionGumbel quantile: :math:Q(p) = \mu - \sigma\log(-\log p).
gumbel_log_probfunctionGumbel log PDF: :math:-\log\sigma - z - e^{-z}, :math:z=(x-\mu)/\sigma.
gumbel_meanfunctionGumbel mean: :math:\mu + \sigma\gamma_E.
gumbel_return_levelfunctionT-period return level: :math:Q(1 - 1/T).

Pure-JAX primitives for non-stationary GEV return levels. (pyrox_xtreme.primitives.nonstationary)

NameKindWhat it does
assemble_nonstationary_gev_fieldsfunctionBuild non-stationary spatio-temporal GEV parameter fields.
expected_exceedancesfunctionExpected number of block exceedances of a threshold.
nonstationary_return_levelfunctionReturn level for stationary or non-stationary GEV parameter fields.
nonstationary_return_periodfunctionReturn period associated with a threshold under (non-)stationary GEV.

Pure-JAX spatial building blocks for hierarchical extreme value models. (pyrox_xtreme.primitives.spatial)

NameKindWhat it does
design_matrixfunctionPrepend an intercept column to a static-covariate matrix.
pairwise_distancesfunctionEuclidean distance matrix between sites.
two_range_correlationfunctionTwo-range exponential correlation matrix with unit diagonal.

Pure-JAX primitives for the reverse Weibull (Type III) extreme value distribution. (pyrox_xtreme.primitives.weibull)

NameKindWhat it does
weibull_cdffunctionReverse-Weibull CDF.
weibull_icdffunctionReverse-Weibull quantile function.
weibull_log_probfunctionReverse-Weibull log PDF (assumes shape < 0).
weibull_meanfunctionReverse-Weibull mean (always finite for shape < 0).
weibull_return_levelfunctionT-period return level.

pyrox_xtreme.extraction

(pyrox_xtreme.extraction.block_maxima)

NameKindWhat it does
declustered_block_maximafunctionExtract declustered block maxima by identifying independent extreme events.
r_largest_block_maximafunctionExtract r-largest order statistics from each block.
sliding_block_maximafunctionExtract block maxima using a sliding window approach.
spatial_block_maximafunctionExtract spatial block maximum values from an xarray DataArray.
temporal_block_maximafunctionExtract temporal block maximum values from an xarray DataArray.
temporal_block_minimafunctionExtract temporal block minimum values from an xarray DataArray.

(pyrox_xtreme.extraction.decluster)

NameKindWhat it does
decluster_runsfunctionDecluster exceedances using the runs method.
decluster_separationfunctionDecluster by enforcing minimum separation between peaks.
estimate_extremal_indexfunctionEstimate the extremal index (theta), a measure of clustering.

Threshold exceedances per time block: their counts, rate and values. (pyrox_xtreme.extraction.exceedances)

NameKindWhat it does
exceedance_countsfunctionCount the values above a threshold within each temporal block.
exceedance_ratefunctionThe fraction of observed values above a threshold within each temporal block.
exceedance_statisticfunctionSummarise the values above a threshold within each temporal block.

Quantile regression utilities for extremes thresholding. (pyrox_xtreme.extraction.quantile_regression)

NameKindWhat it does
XarrayQuantileRegressorclassQuantile regressor that operates on :class:xr.DataArray inputs.
quantile_regression_thresholdfunctionEstimate a time-varying threshold via linear quantile regression.

Threshold selection for peaks-over-threshold (POT) analysis. (pyrox_xtreme.extraction.threshold)

NameKindWhat it does
constant_thresholdfunctionReturn a constant threshold value.
quantile_thresholdfunctionCalculate threshold based on a percentile of the data.
rolling_thresholdfunctionCalculate time-varying threshold using a rolling window.
seasonal_thresholdfunctionCalculate seasonal threshold (backward compatibility wrapper).
temporal_thresholdfunctionCalculate time-varying threshold based on temporal grouping.

pyrox_xtreme.point_processes

Ergonomic adapters wrapping plain values as retention / mark callables. (pyrox_xtreme.point_processes._adapters)

NameKindWhat it does
constant_mark_distributionfunctionMark distribution that ignores time and history and returns d.
constant_retentionfunctionRetention that always returns the same probability p.
time_varying_marksfunctionWrap a time → Distribution callable into the full signature.
time_varying_retentionfunctionWrap a pure function of time into the full retention signature.

Axis-aligned rectangular domain and temporal interval for point processes. (pyrox_xtreme.point_processes._domain)

NameKindWhat it does
RectangularDomainclassAxis-aligned rectangle [lo, hi] ⊂ ℝᵈ.
TemporalDomainclassHalf-open temporal interval [t0, t1) ⊂ ℝ.

Padded event-history PyTree shared by all TPP families. (pyrox_xtreme.point_processes._history)

NameKindWhat it does
EventHistoryclassFixed-size buffer of events + optional marks.

Numerical integration utilities for temporal point processes. (pyrox_xtreme.point_processes._integration)

NameKindWhat it does
cumulative_log_intensityfunctionShorthand for :math:\Lambda(t) = \int_0^t \lambda(s) ds.
integrate_log_intensityfunctionCompute :math:\int_{t_0}^{t_1} \exp(\log\lambda(s))\, ds.

Multi-dimensional integration helpers for spatial point processes. (pyrox_xtreme.point_processes._integration_spatial)

NameKindWhat it does
integrate_log_intensity_spatialfunctionCompute :math:\int_D \exp(\log\lambda(s))\, ds.

Quadrature over a space-time slab D × [t0, t1). (pyrox_xtreme.point_processes._integration_spatiotemporal)

NameKindWhat it does
integrate_log_intensity_spatiotemporalfunctionCompute :math:\int_{t_0}^{t_1} \int_D \exp(\log\lambda(s, t))\, ds\, dt.

Shared result types for point-process samplers and diagnostics. (pyrox_xtreme.point_processes._results)

NameKindWhat it does
GoodnessOfFitclassBundle of diagnostics returned by goodness_of_fit.
MarkedSampleResultclassMarked temporal sample: (times, mask, marks).
MarkedSpatialSampleResultclassMarked spatial sample: (locations, mask, marks).
MarkedSpatiotemporalSampleResultclassMarked spatiotemporal sample: (locations, times, mask, marks).
SampleResultclassUnmarked temporal sample: (times, mask, n_events).
SpatialSampleResultclassUnmarked spatial sample: (locations, mask, n_events).
SpatiotemporalSampleResultclassUnmarked spatiotemporal sample: (locations, times, mask, n_events).

pyrox_xtreme.point_processes.primitives

Goodness-of-fit diagnostics for temporal point processes. (pyrox_xtreme.point_processes.primitives.diagnostics)

NameKindWhat it does
compensator_curvefunctionPairs (t_i, Λ(t_i)) for a compensator plot.
ks_statistic_exp1functionTwo-sided Kolmogorov–Smirnov statistic against Exp(1).
qq_exp1_quantilesfunctionTheoretical vs empirical quantiles against Exp(1) for a QQ plot.
time_rescaling_residualsfunctionRescaled inter-event times under the compensator.

Analytical second-order summaries for spatial point processes. (pyrox_xtreme.point_processes.primitives.diagnostics_spatial)

NameKindWhat it does
csr_l_functionfunctionBesag’s L-function, the variance-stabilised K.
csr_pair_correlationfunctionPair correlation function under CSR: g(r) ≡ 1.
csr_ripleys_kfunctionTheoretical Ripley’s K-function under CSR, :math:K(r) = V_d r^d.
unit_ball_volumefunctionVolume of the unit ℝᵈ ball: :math:V_d = \pi^{d/2}/\Gamma(d/2+1).

Pure primitives for self-exciting (Hawkes) temporal point processes. (pyrox_xtreme.point_processes.primitives.hawkes)

NameKindWhat it does
exp_hawkes_cumulative_intensityfunctionExponential-kernel Hawkes compensator.
exp_hawkes_intensityfunctionConditional intensity of the exponential-kernel Hawkes process.
exp_hawkes_lambda_maxfunctionUpper bound :math:\mu + \alpha \cdot N(t) valid from the last event onward.
exp_hawkes_log_probfunctionLog-likelihood :math:\sum_i \log \lambda^*(t_i) - \Lambda(T) for exp Hawkes.
exp_hawkes_samplefunctionOgata thinning sample of an exponential-kernel Hawkes process.
general_hawkes_cumulative_intensityfunctionCompensator :math:\mu T + \sum_i \int_{t_i}^{T} \phi(s - t_i) ds.
general_hawkes_intensityfunctionConditional intensity for a general kernel.
general_hawkes_log_probfunctionLog-likelihood for a general-kernel Hawkes process.
general_hawkes_samplefunctionOgata thinning for a general-kernel Hawkes process.

Self-exciting spatiotemporal point process (ETAS-style Hawkes). (pyrox_xtreme.point_processes.primitives.hawkes_spatiotemporal)

NameKindWhat it does
stpp_hawkes_compensatorfunctionClosed-form compensator :math:\Lambda of the ETAS Hawkes process.
stpp_hawkes_intensityfunctionConditional intensity :math:\lambda^*(s, t) of the ETAS Hawkes process.
stpp_hawkes_lambda_maxfunctionAdaptive upper bound :math:\bar\lambda = \mu + N \alpha \beta k_s(0).
stpp_hawkes_log_probfunctionLog-likelihood :math:\sum_i \log \lambda^*(s_i, t_i) - \Lambda.
stpp_hawkes_samplefunctionOgata-style spatiotemporal thinning sample.

Pure-JAX primitives for the Homogeneous Poisson Process on [0, T]. (pyrox_xtreme.point_processes.primitives.hpp)

NameKindWhat it does
hpp_cumulative_intensityfunctionCompensator :math:\Lambda(t) = \lambda t.
hpp_exceedance_log_probfunctionlog P(N > k) over [start, end], computed via the Poisson CDF.
hpp_hazardfunctionConstant hazard equal to rate.
hpp_intensityfunctionConstant intensity :math:\lambda(t) = \lambda.
hpp_inter_event_log_probfunctionLog density of τ ~ Exp(λ): :math:\log \lambda - \lambda \tau.
hpp_log_probfunctionLog-likelihood :math:\log L = n \log \lambda - \lambda T.
hpp_mean_residual_lifefunctionMemorylessness gives :math:\mathbb{E}[T - s \mid T > s] = 1/\lambda.
hpp_predict_countfunctionExpected event count on [start, end]: λ (end - start).
hpp_return_periodfunctionTime τ such that :math:P(\text{no event in } \tau) = 1 - p.
hpp_samplefunctionSample ordered event times from a homogeneous Poisson process.
hpp_survivalfunction:math:S(t|s) = \exp(-\lambda (t - s)) for t >= s.

Pure-JAX primitives for the homogeneous spatial Poisson process. (pyrox_xtreme.point_processes.primitives.hpp_spatial)

NameKindWhat it does
hpp_spatial_count_log_probfunctionMarginal Poisson-count log-pmf log P(N = n).
hpp_spatial_intensityfunctionConstant intensity λ(s) = λ, broadcast against locations.
hpp_spatial_log_probfunctionJoint Janossy log-likelihood of a homogeneous Poisson pattern.
hpp_spatial_nearest_neighbor_distancefunctionExpected nearest-neighbour distance for a CSR pattern in ℝᵈ.
hpp_spatial_predict_countfunctionMean and variance of the count in a sub-domain (both λ |A|).
hpp_spatial_samplefunctionSample a CSR realisation on a rectangular domain.

Pure-JAX primitives for the homogeneous spatiotemporal Poisson process. (pyrox_xtreme.point_processes.primitives.hpp_spatiotemporal)

NameKindWhat it does
hpp_spatiotemporal_count_log_probfunctionMarginal Poisson-count log-pmf log P(N = n) with mean λ |D| T.
hpp_spatiotemporal_intensityfunctionConstant intensity λ(s, t) = λ, broadcast against times.
hpp_spatiotemporal_log_probfunctionJanossy log-likelihood n log λ − λ |D| (t1 − t0).
hpp_spatiotemporal_predict_countfunctionMean and variance of the count in a sub-slab (both λ |A| τ).
hpp_spatiotemporal_samplefunctionSample a homogeneous spatiotemporal Poisson realisation.

Pure-JAX primitives for the Inhomogeneous Poisson Process on [0, T]. (pyrox_xtreme.point_processes.primitives.ipp)

NameKindWhat it does
ipp_cumulative_hazardfunction:math:\Lambda(t) - \Lambda(s) via quadrature.
ipp_cumulative_intensityfunctionCompensator :math:\Lambda(t) via composite trapezoid.
ipp_hazardfunctionHazard equals the intensity for an IPP.
ipp_intensityfunctionPointwise intensity λ(t) = exp(log_intensity_fn(t)).
ipp_inter_event_log_probfunctionLog density of the next-event delay τ given last event at s.
ipp_log_probfunctionLog-likelihood of an observed IPP event sequence.
ipp_predict_countfunctionExpected count :math:\Lambda(end) - \Lambda(start) on [start, end].
ipp_sample_inversionfunctionExact inversion sampling when :math:\Lambda^{-1} is available.
ipp_sample_thinningfunctionSample via Lewis–Shedler thinning with a static buffer.
ipp_survivalfunction:math:S(t|s) = \exp(-[\Lambda(t) - \Lambda(s)]) for t >= s.

Pure-JAX primitives for the inhomogeneous spatial Poisson process. (pyrox_xtreme.point_processes.primitives.ipp_spatial)

NameKindWhat it does
ipp_spatial_intensityfunctionPointwise intensity λ(s) = exp(log_intensity_fn(s)).
ipp_spatial_log_probfunctionLog-likelihood of an observed inhomogeneous spatial pattern.
ipp_spatial_predict_countfunctionExpected count over a sub-domain A.
ipp_spatial_sample_thinningfunctionLewis–Shedler thinning sampler with a static buffer.

Pure-JAX primitives for the inhomogeneous spatiotemporal Poisson process. (pyrox_xtreme.point_processes.primitives.ipp_spatiotemporal)

NameKindWhat it does
ipp_spatiotemporal_chi_square_goffunctionPearson :math:\chi^2 statistic from binned residuals.
ipp_spatiotemporal_intensityfunctionEvaluate λ(s, t) = exp(log λ(s, t)) on a batch of events.
ipp_spatiotemporal_intensity_surface_at_timefunctionEvaluate λ(s, t) on a tensor-product spatial grid at fixed t.
ipp_spatiotemporal_log_probfunctionJanossy log-likelihood :math:\sum_i \log \lambda(s_i, t_i) - \Lambda.
ipp_spatiotemporal_marginal_spatial_intensityfunctionCompute :math:\lambda_S(s) = \int_{t_0}^{t_1} \lambda(s, t)\, dt.
ipp_spatiotemporal_marginal_temporal_intensityfunctionCompute :math:\lambda_T(t) = \int_D \lambda(s, t)\, ds.
ipp_spatiotemporal_pearson_residualsfunctionPearson residuals on a tensor-product space-time grid.
ipp_spatiotemporal_predict_countfunctionMean and variance of the Poisson count over the integration domain.
ipp_spatiotemporal_sample_thinningfunctionLewis–Shedler thinning on D × [t_0, t_1).

Primitives for marked temporal point processes. (pyrox_xtreme.point_processes.primitives.marked)

NameKindWhat it does
marks_log_probfunctionSum of log f(mᵢ | tᵢ, Hᵢ) over real events.
sample_marks_at_timesfunctionDraw marks mᵢ ~ f(· | tᵢ, Hᵢ) at each observed time.

Primitives for marked spatial point processes. (pyrox_xtreme.point_processes.primitives.marked_spatial)

NameKindWhat it does
sample_spatial_marks_at_locationsfunctionDraw marks mᵢ ~ f(· | sᵢ) at every location.
spatial_marks_log_probfunctionSum of log f(mᵢ | sᵢ) over real events.

Primitives for marked spatiotemporal point processes. (pyrox_xtreme.point_processes.primitives.marked_spatiotemporal)

NameKindWhat it does
sample_spatiotemporal_marksfunctionDraw marks :math:m_i \sim f(\cdot \mid s_i, t_i) at every event.
spatiotemporal_marks_log_probfunctionSum of :math:\log f(m_i \mid s_i, t_i) over real events.

Pure primitives for 1-D renewal temporal point processes. (pyrox_xtreme.point_processes.primitives.renewal)

NameKindWhat it does
renewal_cumulative_hazardfunction:math:\Lambda(\tau) = -\log S(\tau) = -\log(1 - F(\tau)).
renewal_expected_countfunctionExpected number of events on [0, T] via the renewal equation.
renewal_hazardfunctionHazard of the inter-event distribution: :math:h(\tau) = f(\tau)/S(\tau).
renewal_intensityfunctionConditional intensity :math:\lambda^*(t) = h(t - t_{N(t)}).
renewal_inter_event_log_probfunctionLog density of an inter-event gap: log f(τ).
renewal_log_probfunctionLog-likelihood of an observed renewal-process sequence.
renewal_ogata_intensity_fnfunctionBuild a (t, history) -> λ*(t) closure usable by thinning samplers.
renewal_samplefunctionSample a renewal-process event sequence by accumulating gaps.
renewal_survivalfunctionS(τ) = 1 − F(τ) clipped to be non-negative.

Generic Ogata thinning sampler and retention primitives. (pyrox_xtreme.point_processes.primitives.thinning)

NameKindWhat it does
retention_compensatorfunctionCompute the retention compensator via trapezoid quadrature.
thinning_retention_log_probfunctionSum of log p(tᵢ | Hᵢ, mᵢ) over retained events.
thinning_samplefunctionSample a history-dependent temporal point process via Ogata thinning.

pyrox_xtreme.point_processes.operators

Equinox operators for self-exciting (Hawkes) temporal point processes. (pyrox_xtreme.point_processes.operators.hawkes)

NameKindWhat it does
ExponentialHawkesclassHawkes process with exponential excitation on [0, T].
ExponentialKernelclassExponential excitation kernel :math:\phi(\tau) = \alpha e^{-\beta \tau}.
GeneralHawkesProcessclassHawkes process with a user-supplied kernel module.

Equinox operator for the spatiotemporal Hawkes process. (pyrox_xtreme.point_processes.operators.hawkes_spatiotemporal)

NameKindWhat it does
SpatioTemporalHawkesclassETAS-style separable exp-Gaussian Hawkes process.

Equinox operator for the homogeneous spatial Poisson process. (pyrox_xtreme.point_processes.operators.hpp_spatial)

NameKindWhat it does
HomogeneousSpatialPPclassHomogeneous spatial Poisson process on a rectangular domain.

Equinox operator for the homogeneous spatiotemporal Poisson process. (pyrox_xtreme.point_processes.operators.hpp_spatiotemporal)

NameKindWhat it does
HomogeneousSpatioTemporalPPclassHomogeneous Poisson process on D × [t0, t1).

Equinox operator for the inhomogeneous spatial Poisson process. (pyrox_xtreme.point_processes.operators.ipp_spatial)

NameKindWhat it does
InhomogeneousSpatialPPclassInhomogeneous spatial Poisson process on a rectangular domain.

Equinox operator for the inhomogeneous spatiotemporal Poisson process. (pyrox_xtreme.point_processes.operators.ipp_spatiotemporal)

NameKindWhat it does
InhomogeneousSpatioTemporalPPclassInhomogeneous Poisson process on D × [t0, t1).

Equinox operator for separable marked temporal point processes. (pyrox_xtreme.point_processes.operators.marked)

NameKindWhat it does
MarkedTemporalPointProcessclassSeparable marked TPP: ground process + time-/history-conditioned marks.

Equinox operator for separable marked spatial point processes. (pyrox_xtreme.point_processes.operators.marked_spatial)

NameKindWhat it does
MarkedSpatialPPclassSeparable marked spatial PP: ground process × mark distribution.

Equinox operator for separable marked spatiotemporal PPs. (pyrox_xtreme.point_processes.operators.marked_spatiotemporal)

NameKindWhat it does
MarkedSpatioTemporalPPclassSeparable marked spatiotemporal PP: ground × mark distribution.

Equinox operator for 1-D renewal temporal point processes. (pyrox_xtreme.point_processes.operators.renewal)

NameKindWhat it does
RenewalProcessclassRenewal process on [0, T] with a user-supplied inter-event law.

Equinox-based temporal point process operators. (pyrox_xtreme.point_processes.operators.temporal)

NameKindWhat it does
HomogeneousPoissonProcessclassHomogeneous Poisson process on [0, T].
InhomogeneousPoissonProcessclassInhomogeneous Poisson process on [0, T].
PiecewiseConstantLogIntensityclassPiecewise-constant log-intensity as an eqx.Module.

Equinox operator that thins a base temporal point process. (pyrox_xtreme.point_processes.operators.thinning)

NameKindWhat it does
ThinningProcessclassThinned TPP: base ground process + retention callable.

pyrox_xtreme.point_processes.distributions

NumPyro Distribution wrappers for Hawkes temporal point processes. (pyrox_xtreme.point_processes.distributions.hawkes)

NameKindWhat it does
ExponentialHawkesclassNumPyro wrapper for an exponential-kernel Hawkes process.
GeneralHawkesProcessclassNumPyro wrapper for a general-kernel Hawkes process.

NumPyro Distribution wrapper for the spatiotemporal Hawkes process. (pyrox_xtreme.point_processes.distributions.hawkes_spatiotemporal)

NameKindWhat it does
SpatioTemporalHawkesclassNumPyro wrapper for a separable exp-Gaussian spatiotemporal Hawkes process.

NumPyro Distribution wrapper for the homogeneous spatial PP. (pyrox_xtreme.point_processes.distributions.hpp_spatial)

NameKindWhat it does
HomogeneousSpatialPPclassNumPyro wrapper for a homogeneous spatial Poisson process.

NumPyro Distribution wrapper for the homogeneous spatiotemporal PP. (pyrox_xtreme.point_processes.distributions.hpp_spatiotemporal)

NameKindWhat it does
HomogeneousSpatioTemporalPPclassNumPyro wrapper for a homogeneous spatiotemporal Poisson process.

NumPyro Distribution wrapper for the inhomogeneous spatial PP. (pyrox_xtreme.point_processes.distributions.ipp_spatial)

NameKindWhat it does
InhomogeneousSpatialPPclassNumPyro wrapper for an inhomogeneous spatial Poisson process.

NumPyro Distribution wrapper for the inhomogeneous spatiotemporal PP. (pyrox_xtreme.point_processes.distributions.ipp_spatiotemporal)

NameKindWhat it does
InhomogeneousSpatioTemporalPPclassNumPyro wrapper for an inhomogeneous spatiotemporal Poisson process.

NumPyro Distribution wrapper for a separable marked TPP. (pyrox_xtreme.point_processes.distributions.marked)

NameKindWhat it does
MarkedTemporalPointProcessclassNumPyro wrapper for a separable marked temporal point process.

NumPyro Distribution wrapper for the marked spatial PP. (pyrox_xtreme.point_processes.distributions.marked_spatial)

NameKindWhat it does
MarkedSpatialPPclassNumPyro wrapper for a separable marked spatial Poisson process.

NumPyro Distribution wrapper for the marked spatiotemporal PP. (pyrox_xtreme.point_processes.distributions.marked_spatiotemporal)

NameKindWhat it does
MarkedSpatioTemporalPPclassNumPyro wrapper for a separable marked spatiotemporal Poisson process.

NumPyro Distribution wrapper for a renewal temporal point process. (pyrox_xtreme.point_processes.distributions.renewal)

NameKindWhat it does
RenewalProcessclassNumPyro wrapper for a renewal temporal point process.

NumPyro Distribution wrappers around the temporal PP operators. (pyrox_xtreme.point_processes.distributions.temporal)

NameKindWhat it does
HomogeneousPoissonProcessclassNumPyro wrapper for a homogeneous temporal Poisson process.
InhomogeneousPoissonProcessclassNumPyro wrapper for an inhomogeneous temporal Poisson process.

NumPyro Distribution wrapper for a thinned temporal point process. (pyrox_xtreme.point_processes.distributions.thinning)

NameKindWhat it does
ThinningProcessclassNumPyro wrapper for a thinned TPP.

pyrox_xtreme.simulations

Variable-specific extreme value generators. (pyrox_xtreme.simulations.extremes)

NameKindWhat it does
compute_climate_signalfunctionCombines Spatial and Temporal fields to create a mean climate signal (Mu).
generate_spatial_fieldfunctionGenerates static spatial data: Lat, Lon, Elevation, Distance to Coast.
simulate_precip_extremesfunctionSimulates Precipitation Extremes: 1.
simulate_temp_extremesfunctionSimulates Block Maxima Temperature via the GEV distribution.
simulate_wind_extremesfunctionSimulates Extreme Wind Speeds (Gusts) using Weibull distribution.

Synthetic spatial-domain generators. (pyrox_xtreme.simulations.spatial)

NameKindWhat it does
SpatialFeatureExtractorclassStatic methods to derive physical features from a Digital Elevation Model (DEM).
augment_spatial_featuresfunctionPipeline to run all extractors and merge into Dataset.
compute_advanced_climate_signalfunctionGenerates Tmax and Precip Mean fields using advanced physics proxies.
create_iberian_domainfunctionCreates the master spatial dataset with Lat, Lon, Elevation, and Land Mask.
generate_fractal_terrainfunctionGenerates coherent terrain using Fractal Brownian Motion (fBm).
generate_iberia_maskfunctionProcedurally generates a boolean mask approximating the Iberian Peninsula and Balearic Islands using geometrical primitives.

Temporal GMST trajectory generators. (pyrox_xtreme.simulations.temporal)

NameKindWhat it does
generate_gmst_trajectoryfunctionGenerates a synthetic Global Mean Surface Temperature (GMST) anomaly curve.
generate_physical_gmstfunctionSimulates Global Mean Surface Temperature (GMST) using a 0-D Energy Balance Model.

pyrox_xtreme

Listed at gaussx 0.8.4, kernellib 0.0.23, geonnax 0.1.0, functax 0.0.15.

Upstream: gaussx

Structured linear algebra and Gaussians: solve / logdet / Cholesky on structured operators, Gaussian densities and KLs, GP conditioning, Kalman filters, quadrature. Use it instead of jnp.linalg or cho_solve on a covariance.

gaussx

NameKindWhat it does
AbstractIntegratorclassProtocol for Gaussian integral approximation.
AbstractLikelihoodclassBase class for likelihood functions with optional analytical ELL.
AbstractLogdetStrategyclassProtocol for a log-determinant strategy.
AbstractPreconditionerclassProtocol for preconditioners that produce an approximate inverse.
AbstractSketchclassA random sketching matrix S ∈ ℝ^(d × M), sampled once.
AbstractSmootherclassA smoother u ← S(u, b) for A u = b on one level.
AbstractSolveStrategyclassProtocol for a linear-solve strategy.
AbstractSolverStrategyclassProtocol for a solver strategy that pairs a solve and a log-determinant.
AnalyticalPsiStatisticsclassProtocol for kernels with closed-form Ψ statistics.
AssumedDensityFilterclassKL-optimal Gaussian projection of g(x) via moment matching.
AutoSolverclassAutomatic solver selection from the operator’s type, size and tags.
BBMMSolverclassCG solve and SLQ logdet with BBMM’s defaults (Gardner et al. 2018).
BYM2GMRFclassThe BYM2 pair (b, u*) (Riebler et al., 2016), with its exact density.
BernoulliLikelihoodclassBernoulli likelihood with logit link.
BinomialLikelihoodclassBinomial likelihood with logit link.
BlockDiagclassBlock-diagonal operator A = blockdiag(A_1, …, A_D), one block per slice.
BlockTriDiagclassBlock-tridiagonal operator A with a symmetric off-diagonal band.
CGSolverclassConjugate-gradient solve with a stochastic log-determinant.
CURclassCUR decomposition A ≈ C U R, with C = A_:,J and R = A_I,:.
CallableLikelihoodclassA factorised likelihood from a per-site log density.
CapacitanceSolverclassSolve a base system subject to homogeneous point constraints.
ChandrupatlaclassChandrupatla’s hybrid inverse-quadratic / bisection root finder.
ColumnIDclassColumn interpolative decomposition A ≈ A_:,J X.
ComposedSolverclassMix-and-match a solve and a log-determinant from different strategies.
ConstantSDEclassState-space form of the constant kernel k(τ) = σ_k².
ConstrainedGMRFclassA GaussianMRF conditioned on hard linear constraints A_c x = e.
CosineSDEclassState-space form of the cosine kernel k(τ) = σ_k² cos(ω₀ τ).
CubatureIntegratorclassThird-order spherical-radial cubature on 2 D_x equally weighted points.
DAREResultclassOutput of dare: the steady-state covariance Σ_x,∞ and gain G_∞.
DenseFallbackWarningclassWarning emitted when a structured primitive materialises an operator.
DenseLogdetclassExact log-determinant by gaussx’s structural dispatch.
DenseSolverclassExact solver strategy through gaussx structural dispatch.
DiagonalSplitclassA system A = base + diag(diagonal), read back into its two parts.
DiagonalizedOperatorclassLinear operator A = W⁻¹ diag(γ) W given by a transform pair.
EigenDecompositionclassPrecomputed eigendecomposition A = V diag(γ) V⁻¹ of a square matrix.
EmissionModelclassLinear observation (emission) model with a dense observation operator H.
FITCPreconditionerclassNyström-plus-diagonal (“FITC”) preconditioner of A = K_XX + Λ.
FifthOrderCubatureIntegratorclassFifth-order fully symmetric cubature on 2 D_x² + 1 points.
FilterStateclassOutput of kalman_filter: the filtered and predicted moments of x_t.
GaussHermiteIntegratorclassGauss-Hermite integrator: a tensor-product rule on order^D_x points.
GaussianExpFamclassGaussian 𝒩(μ, Σ) held by its natural parameters (Λ μ, −½ Λ).
GaussianLikelihoodclassGaussian likelihood with isotropic noise, with a closed-form ELL.
GaussianMRFclassGaussian Markov random field x ~ 𝒩(μ, Λ⁻¹) with a structured precision Λ.
GaussianSitesclassTime-varying Gaussian likelihood sites in natural parameterization.
GaussianSketchclassGaussian sketch: i.i.d. entries S_ij ~ 𝒩(0, 1/d).
GaussianStateclassGaussian belief as a pair of mean and covariance operator.
HeteroscedasticGaussianLikelihoodclassHeteroscedastic Gaussian likelihood with input-dependent noise.
IndefiniteSLQLogdetclassStochastic log |det(A + σ I)| for symmetric, possibly indefinite, A.
InformationDiagnosticsclassOutput of information_diagnostics.
IntegratedWienerSDEclassState-space form of the p-times integrated Wiener process.
InterpolatedOperatorclassStructured kernel interpolation A = W_interp K_ℐℐ W_interpᵀ ≈ K_XX.
IntrinsicGMRFclassImproper Gaussian field x ~ 𝒩(μ, (τ R)⁺) on the complement of ker R.
JacobiPreconditionerclassDiagonal preconditioner M⁻¹ = diag(1 / |diag(A)|).
KeyedSolverclassBind a PRNG key to a strategy’s stochastic log-determinant (gh-384).
KroneckerclassKronecker product A = A_1 ⊗ … ⊗ A_D, applied one factor at a time.
KroneckerSumclassKronecker sum A_1 ⊕ A_2 = A_1 ⊗ I + I ⊗ A_2 of two square operators.
KroneckerSumSqrtclassSymmetric square root S of A_1 ⊕ A_2 from the factor eigenvectors.
LOOResultclassResult of leave_one_out_cv: the LOO log-likelihood and predictives.
LOVECacheclassCached rank-k Lanczos approximation Q diag(θ)⁻¹ Qᵀ of Σ_y⁻¹.
LSMRSolverclassLSMR iterative least-squares solver (Fong & Saunders 2011).
LaplaceModelclassThe latent Gaussian model of a Laplace fit, with the maps one Newton step needs.
LaplaceResultclassThe Gaussian approximation 𝒩(x̂, Λ_x|y⁻¹) at the mode.
LinearGaussianPosteriorclassPosterior 𝒩(x_a, P_a) of linear_gaussian_update.
LinearizedSDEclassLinear surrogate dx(t) = (F_c,t x(t) + c_t) dt + L_c db(t) of an SDE.
LineaxSolverclassA lineax solver as a gaussx solve strategy.
LowRankUpdateclassLow-rank update A = A₀ + U D Vᵀ of a base operator, with D = diag(d).
LowerBlockTriDiagclassLower block-bidiagonal operator L, the block Cholesky factor of A.
MINRESSolverclassMINRES solver for symmetric, possibly indefinite, systems.
MaskedOperatorclassMasked view A = A₀[m_r, m_c] of a square base operator A₀.
MaternSDEclassState-space form of the Matérn kernel of order p, smoothness p + ½.
MomentMatchResultclassTilted log-normaliser and its derivatives with respect to the cavity mean.
MonteCarloIntegratorclassMonte Carlo moment matching: sample, propagate, take empirical moments.
MultigridLevelclassOne level of a hierarchy: A_ℓ, its transfers and its smoother.
MultigridPreconditionerclassOne V-cycle as the preconditioner M⁻¹ ≈ A⁻¹.
MultigridSolverclassCG preconditioned by a V-cycle over the caller’s levels.
NegativeBinomialLikelihoodclassNegative-binomial likelihood with log link (NB2, a gamma-Poisson mixture).
NystromLogdetclassNyström-preconditioned SLQ log-determinant of K + σ² I (Wenger et al., 2022).
NystromPreconditionerclassRandomized Nyström preconditioner for K + σ² I.
OperatorPreconditionerclassUse an externally supplied approximate inverse as a preconditioner.
OrthonormalSketchclassGaussian sketch with orthonormal rows, S Sᵀ = I_d.
PartialCholeskyPreconditionerclassPreconditioner from a pivoted partial Cholesky factor.
PeriodicSDEclassState-space form of the periodic (MacKay) kernel, as J + 1 harmonics.
PoissonLikelihoodclassPoisson likelihood with log link.
PreconditionedCGSolverclassCG with a pivoted partial Cholesky preconditioner.
PredictionCacheclassCached training solve α = Σ_y⁻¹ y (and factor L_y) for amortized predictions.
ProductSDEclassProduct of two SDE kernels, by Kronecker composition.
PropagationResultclassOutput moments of a Gaussian pushed through a nonlinear map g.
QuasiPeriodicSDEclassQuasi-periodic kernel: a Matérn factor times a periodic factor.
RootDecompositionclassTall factor R of a root decomposition, A ≈ R Rᵀ.
RowSamplingSketchclassWeighted row-sampling sketch.
SDEKernelclassAbstract state-space form of a kernel k(τ): a linear SDE.
SDEParamsclassContinuous-time matrices (F_c, L_c, H, Q_c, Σ_x,∞) of a linear SDE.
SLQLogdetclassStochastic log-determinant by stochastic Lanczos quadrature (SLQ).
SLRResultclassLinear-Gaussian surrogate produced by statistical linear regression.
SRHTSketchclassSubsampled randomized Hadamard transform sketch.
SitePosteriorclass𝒩(μ_f|y, Σ_f|y) for a covariance-form prior and diagonal sites.
SketchAndPrecondLSMRclassSketch-and-precondition LSMR for tall least squares (Rokhlin & Tygert, 2008).
SoftmaxLikelihoodclassSoftmax (categorical) likelihood for multi-class classification.
SolveInfoclassHow a solve ended, from linear_solve_with_info.
SparseCholeskyFactorclassSparse Cholesky factor on a static symbolic pattern.
SparseCholeskySolverclassExact solve / logdet / diag_inv through a sparse Cholesky factor.
SparseOperatorclassSparse matrix A with a static SparsityPattern and traced values.
SparseSignSketchclassSparse sign sketch (sparse Johnson-Lindenstrauss transform).
SparsityPatternclassStatic, hashable sparsity pattern of an M × N matrix A.
SpectralFunctionclassf(A) = W⁻¹ diag(f(γ)) W for a symmetric A with a factored eigenbasis.
StudentTLikelihoodclassStudent-t likelihood for robust regression.
SumOfKroneckersclassSum of Kronecker products ∑_j A_j ⊗ B_j, applied term by term.
SumOfKroneckersSqrtclassLazy Lanczos square root A^½ of a SumOfKroneckers covariance.
SumSDEclassSum of independent SDE kernels, stacked block-diagonally.
SymbolicCholeskyclassSymbolic Cholesky factor of a symmetric sparsity pattern.
TaylorIntegratorclassFirst- or second-order Taylor expansion of g about the mean.
ToeplitzclassSymmetric Toeplitz matrix A = toeplitz(t) from its first column t.
ToeplitzCholeskyclassCirculant-embedding sample factor L, N × M, with L Lᵀ = toeplitz(t).
UDLDecompositionclassBanded factorisation Λ_x = U D Uᵀ of a block-tridiagonal precision.
UnscentedIntegratorclassUnscented transform: 2 D_x + 1 deterministic sigma points.
UpperBlockTriDiagclassUpper block-bidiagonal operator U, the transpose of a LowerBlockTriDiag.
WeightedJacobiclassWeighted Jacobi: u ← u + ω D⁻¹ (b − A u), sweeps times.
add_jitterfunctionDiagonal jitter A + β I for numerical stability.
ar1_precisionfunctionPrecision of a stationary AR(1) process with marginal precision τ.
as_diagonalizedfunctionExpress an operator as one DiagonalizedOperator, if possible.
as_linear_operatorfunctionWrap a raw matvec callable as a tagged lineax operator.
besag_structurefunctionValidate a graph Laplacian as a Besag (ICAR) structure matrix.
block_diagonal_tagconstantblock_diagonal_tag
block_tridiagonal_tagconstantblock_tridiagonal_tag
blr_diag_updatefunctionDamped BLR step on the natural parameters of a diagonal Gaussian.
blr_full_updatefunctionDamped BLR step on the natural parameters of a full-rank Gaussian.
build_prediction_cachefunctionSolve Σ_y α = y and cache the result.
bym2_precisionfunctionJoint precision Λ of the BYM2 pair (b, u*) (Riebler et al., 2016).
cavity_distributionfunctionEP cavity distribution: remove a fraction α of a site from the marginal.
cavity_from_marginalfunctionCavity distribution: the marginal with one site divided out.
choleskyfunctionLower Cholesky factor L of an operator, structured where A is.
cholesky_logdetfunctionLog-determinant log det A from a Cholesky factor L of A = L Lᵀ.
circulantfunction(Block-)circulant operator C from its first column c.
circulant_from_symbolfunction(Block-)circulant operator C = DFT⁻¹ diag(γ) DFT from its symbol γ.
collapsed_elbofunctionCollapsed ELBO (Titsias bound) for sparse GP regression.
column_idfunctionRandomized column interpolative decomposition (Voronin & Martinsson, 2017).
compose_solverfunctionOne strategy from a solver, a preconditioner and a log-determinant.
compute_psi_statisticsfunctionCompute Ψ statistics, dispatching to analytical or numerical.
conditionalfunctionConditional p(x_A ∣ x_B = b) of a joint Gaussian 𝒩(μ, Σ) from observed entries.
conditional_interpolatefunctionTwo-filter fusion at t from a filtered state and a backward message.
conditional_variancefunctionPredictive variance: the Schur-complement diagonal plus a variational term.
cost_expectationfunctionExpected cost of a prediction under an uncertain state.
cov_transformfunctionCovariance propagation through a linear map, J Σ Jᵀ.
create_gridfunctionRegular grid axes g_d = linspace(lo_d, hi_d, N_d), one per dimension.
cubature_pointsfunctionSpherical-radial cubature points and weights, 2 D_x of them.
curfunctionRandomized CUR decomposition (Voronin & Martinsson, 2017, §4).
cvi_update_sitesfunctionDamped natural-gradient update of CVI sites.
damped_natural_updatefunctionDamped update in natural-parameter space.
darefunctionSteady-state Kalman filter covariance and gain (the filtering DARE).
diagfunctionDiagonal diag(A) of an operator, with structural dispatch.
diag_conditional_variancefunctionDiagonal of the Schur complement, max([K_XX]_nn − [A_X K_ZX]_nn, 0).
diag_invfunctionDiagonal of the inverse, diag(A⁻¹), without forming A⁻¹.
diagonal_tagconstantRe-exported from lineax.
discrepancy_step_sizefunctionAdaptive EKI tempering step: the data misfit controller.
discrete_lyapunov_solvefunctionSolve the discrete Lyapunov equation X − A X Aᵀ = B by diagonalising A.
discretize_mfdfunctionDiscretise a linear SDE by matrix-fraction decomposition.
discretize_mfd_sequencefunctionVectorised gaussx.discretize_mfd over a stack of steps Δt_1:T.
eigfunctionEigenvalues and eigenvectors of A, with structural dispatch.
eigh_generalizedfunctionGeneralised eigenproblem A v = γ B v, A symmetric and B symmetric PSD.
eigvalsfunctionEigenvalues of A only, with structural dispatch.
eki_stepfunctionOne ensemble Kalman inversion (EKI) update.
elbofunctionEvidence lower bound (ELBO) from a likelihood and a precomputed KL.
enkf_analysisfunctionStochastic (perturbed-observation) ensemble Kalman analysis step.
ensemble_covariancefunctionEmpirical covariance from an ensemble as a low-rank operator.
ensemble_cross_covariancefunctionCross-covariance between two ensembles with the same members.
ensemble_kalman_gainfunctionKalman gain from an ensemble and its image in observation space.
ensemble_rts_stepfunctionOne backward step of the ensemble Rauch-Tung-Striebel smoother.
ep_tilted_momentsfunctionMoments of the scalar EP tilted distribution, elementwise over a batch.
estimate_spectral_boundsfunctionEstimate the extreme eigenvalues (γ_min, γ_max) of a symmetric operator.
etkf_analysisfunctionETKF analysis ensemble, without forming the (|ℰ|, |ℰ|) transform.
etkf_transformfunctionEnsemble Transform Kalman Filter (ETKF) analysis weights.
euclidean_distancefunctionPairwise Euclidean distances ‖aₙ − bₘ‖₂.
expectation_to_mean_cholfunctionMean μ and Cholesky factor of Σ from the expectation parameters.
expectation_to_naturalfunctionNatural parameters (Λ μ, −½ Λ) from the expectation parameters.
expectations_to_ssmfunctionMarginals of a chain from its expectation parameters (𝔼[x], 𝔼[x xᵀ]).
expected_log_likelihoodfunctionUnified expected log-likelihood with analytical dispatch.
fem_matricesfunctionLumped mass C̃ and stiffness G of P1 elements on a triangle mesh.
fem_projectorfunctionObservation matrix A of P1 interpolation: (A w)_k = ∑_i ψ_i(s_k) w_i.
fifth_order_cubature_pointsfunctionFifth-order fully symmetric cubature points and weights.
fisher_infofunctionFisher information of the mean μ, which is the precision Λ = Σ⁻¹.
frobenius_normfunctionFrobenius norm ‖A‖_F of an operator, with structural dispatch.
galerkin_levelsfunctionA hierarchy with Galerkin coarse operators A_ℓ₊₁ = R_ℓ A_ℓ P_ℓ.
gaspari_cohnfunctionGaspari-Cohn (1999) fifth-order compactly supported taper.
gauss_hermite_pointsfunctionTensor-product Gauss-Hermite points and weights for a standard Gaussian.
gauss_klfunctionKL(first ‖ second): KL[q(f_ℐ) ‖ p(f_ℐ)] with p(f_ℐ) = 𝒩(0, K_ℐℐ).
gauss_newton_operatorfunctionMatrix-free Gauss-Newton precision of a residual function.
gauss_newton_precisionfunctionGauss-Newton precision J_rᵀ J_r, optionally plus a prior precision.
gaussian_entropyfunctionEntropy of a multivariate normal 𝒩(μ, Σ), independent of the mean.
gaussian_expected_log_likfunctionExpected Gaussian log-likelihood under q(x), the data term of an ELBO.
gaussian_klfunctionKL(first ‖ second): KL[p ‖ q] between two multivariate normals.
gaussian_log_probfunctionMultivariate normal log-density log 𝒩(x; μ, Σ) of a structured covariance.
gaussian_taperfunctionGaussian localization taper ρ(r) = exp(−r² / (2 L²)).
generalized_variance_scalefunctionGeneralized variance of an intrinsic GMRF (Sørbye & Rue, 2014).
ggn_diagonalfunctionDiagonal of the generalized Gauss-Newton matrix J_hᵀ J_h.
gradient_expectationfunctionExpected gradient of a scalar map under a Gaussian, via Stein’s lemma.
grid_coupling_indicesfunctionFlat indices of masked-out grid cells adjacent to the masked-in region.
grid_datafunctionInducing inputs X_ℐ, the Cartesian product of the grid axes.
hadamard_transformfunctionUnnormalized Walsh-Hadamard transform along the last axis.
haversine_distancefunctionPairwise great-circle (haversine) distances on a sphere.
hutchinson_hessian_diagfunctionStochastic Hessian diagonal by Hutchinson with Rademacher probes.
iid_precisionfunctionPrecision Λ = τ I of n independent effects with variance 1 / τ.
infinite_horizon_filterfunctionInfinite-horizon Kalman filter with the fixed steady-state gain G_∞.
infinite_horizon_smootherfunctionInfinite-horizon RTS smoother with the fixed steady-state gain G_smooth,∞.
inflate_multiplicativefunctionMultiplicative ensemble inflation about the sample mean.
inflate_rtppfunctionRelaxation to prior perturbations (RTPP).
inflate_rtpsfunctionRelaxation to prior spread (RTPS).
information_diagnosticsfunctionAveraging kernel, DOFS and information content of a linear retrieval.
interpolation_operatorfunctionThe interpolation matrix W as a matrix-free operator, B × G.
invfunctionLazy inverse A⁻¹ of an operator, structured where A is.
inv_quad_logdetfunctionJoint inverse-quadratic and log-determinant via shared BBMM CG.
is_block_diagonalfunctionCheck whether operator carries the block-diagonal tag.
is_block_tridiagonalfunctionCheck whether operator carries the block-tridiagonal tag.
is_diagonalfunctionRe-exported from lineax.
is_eigen_reduciblefunctionWhether a sum of Kronecker products has the exact two-term reduction.
is_kroneckerfunctionCheck whether operator carries the Kronecker tag.
is_kronecker_sumfunctionCheck whether operator carries the Kronecker sum tag.
is_low_rankfunctionCheck whether operator carries the low-rank tag.
is_lower_triangularfunctionRe-exported from lineax.
is_negative_semidefinitefunctionRe-exported from lineax.
is_positive_semidefinitefunctionRe-exported from lineax.
is_symmetricfunctionRe-exported from lineax.
is_upper_triangularfunctionRe-exported from lineax.
joseph_updatefunctionJoseph-form posterior covariance of a Kalman update, stable for any gain.
kalman_filterfunctionKalman filter forward pass for a linear-Gaussian state-space model.
kalman_gainfunctionKalman gain of a linear-Gaussian observation of the state x.
kernel_expectationsfunctionKernel expectations Ψ₀, Ψ₁ and Ψ₂ for an uncertain input.
kl_divergencefunctionKL(first ‖ second): KL[q ‖ p] in the Bregman form on natural parameters.
kl_standard_normalfunctionKL(first ‖ second): KL[𝒩(μ, Σ) ‖ 𝒩(0, I)] from the standard normal.
kronecker_mllfunctionExact marginal log-likelihood log p(y) of a Kronecker-structured GP.
kronecker_posterior_predictivefunctionPosterior mean and variance of a Kronecker GP at grid test inputs.
kronecker_sum_samplefunctionSample from 𝒩(0, A_1 ⊕ A_2) through the factor eigendecompositions.
kronecker_sum_solvefunctionSolve a shifted Kronecker-sum system in tensor (unvectorised) form.
kronecker_sum_tagconstantkronecker_sum_tag
kronecker_tagconstantkronecker_tag
laplace_modelfunctionCollect and check the pieces of the latent Gaussian model of a Laplace fit.
laplace_resultfunctionThe Gaussian approximation and the Laplace log-marginal at a mode.
leave_one_out_cvfunctionLOO-CV via the bordered-system identity, without refitting N times.
ledoit_wolf_shrinkagefunctionLedoit-Wolf shrinkage of an ensemble covariance, without forming it.
lift_known_valuesfunctionLift prescribed values to the right-hand side of A x = b.
linear_gaussian_updatefunctionMatrix-free posterior of a linear-Gaussian observation.
linear_solvefunctionSolve A x = b through the unified front door.
linear_solve_with_infofunctionSolve A x = b as linear_solve does, and report how the solve ended.
linearize_sdefunctionOptimal linear drift of a nonlinear SDE along a Gaussian path.
localization_matrixfunctionPairwise Gaspari-Cohn taper ρ(d(aₙ, bₘ); c).
localized_kalman_gainfunctionEnsemble Kalman gain with Hadamard (Schur-product) localization.
log_likelihood_expectationfunctionExpected log-likelihood of a callable under a Gaussian, by integration.
log_marginal_likelihoodfunctionGP log marginal likelihood, by way of gaussx.gaussian_log_prob.
log_partitionfunctionLog-partition of a Gaussian in natural form, normaliser included.
logdetfunctionLog-determinant log ∣det A∣ with structural dispatch on the operator type.
love_cachefunctionPrecompute a Lanczos approximation of Σ_y⁻¹ for fast GP variances.
love_residualfunctionRelative solve residual of a LOVE cache for one cross-covariance.
love_variancefunctionApproximate the variance reduction k_X*ᵀ Σ_y⁻¹ k_X* from a LOVE cache.
love_variance_error_boundfunctionUpper bound on the variance over-estimate of a LOVE cache.
low_rank_plus_diagfunctionBuild A = diag(a) + U D Vᵀ, a low-rank update of a diagonal base.
low_rank_plus_identityfunctionBuild A = c I + U D Vᵀ, a low-rank update of a scaled identity.
low_rank_tagconstantlow_rank_tag
lower_triangular_tagconstantRe-exported from lineax.
masked_moment_inputsfunctionMake masked observation channels inert in a moment-matched update.
masked_obs_covariancefunctionObservation-error covariance with masked entries marginalised out.
matern_spde_paramsfunctionSPDE parameters (κ, τ, α) of a Matérn field.
matheron_updatefunctionPosterior draws of x_A ∣ x_B = β from joint prior draws, by Matheron’s rule.
mean_chol_to_expectationfunctionExpectation parameters (𝔼[x], 𝔼[x xᵀ]) from the mean and Cholesky factor.
mean_chol_to_naturalfunctionNatural parameters (Λ μ, −½ Λ) from the mean and the Cholesky factor of Σ.
mean_cov_to_naturalfunctionNatural parameters (Λ μ, −½ Λ) from the mean and covariance, in operator form.
mean_expectationfunctionExpectation of a map under a Gaussian: 𝔼[g(x)], x ~ 𝒩(μ_x, Σ_x).
meanfield_kalman_filterfunctionMean-field Kalman filter over L = D_x / d independent state blocks.
meanfield_rts_smootherfunctionMean-field RTS smoother over L = D_x / d independent state blocks.
mixture_quantilefunctionInvert a CDF at one or more quantile levels by bracketed root finding.
mixture_quantile_gaussian_approxfunctionQuantiles of the Gaussian matched to an ensemble’s first two moments.
moment_matchfunctionEP moment matching: tilted log-normaliser and its first two derivatives.
moment_transformfunctionMoment triple of (x, g(x)) for a Gaussian x.
natural_to_expectationfunctionExpectation parameters (𝔼[x], 𝔼[x xᵀ]) from the natural parameters.
natural_to_mean_cholfunctionMean μ and Cholesky factor of Σ from the natural parameters (Λ μ, −½ Λ).
natural_to_mean_covfunctionMean μ and covariance Σ from the natural parameters, in operator form.
naturals_to_ssmfunctionGauss-Markov chain (F_t, Σ_η,t, μ_x,0, Σ_x,0) from its natural parameters.
negative_semidefinite_tagconstantRe-exported from lineax.
newton_updatefunctionConvert a Newton step into the natural parameters of a site.
nonlinear_kalman_filterfunctionMoment-matched nonlinear Kalman filter (EKF, UKF, CKF, GHKF, …).
nonlinear_kalman_predictfunctionOne moment-matched predict step through the dynamics f.
nonlinear_kalman_updatefunctionOne moment-matched update step through the observation map h.
nonlinear_rts_smootherfunctionMoment-matched nonlinear Rauch-Tung-Striebel smoother.
nonlinear_rts_stepfunctionOne moment-matched RTS backward step.
oilmm_back_projectfunctionBack-project latent GP predictions to the observation space.
oilmm_projectfunctionProject multi-output data to independent latent GPs via OILMM.
pairwise_marginalsfunctionJoint Gaussian p(x_t, x_t+1) of each pair of consecutive states.
parallel_kalman_filterfunctionParallel Kalman filter via jax.lax.associative_scan.
parallel_rts_smootherfunctionParallel RTS smoother via reverse jax.lax.associative_scan.
positive_semidefinite_tagconstantRe-exported from lineax.
predict_meanfunctionPredictive mean of a GP at the test inputs, from a prediction cache.
predict_variancefunctionPredictive variance of a GP at the test inputs, from a prediction cache.
predictive_variance_sbpvfunctionSimulation-based predictive variance (SBPV), unbiased and consistent.
predictive_variance_spvfunctionStochastic predictive variance (SPV) by Rademacher diagonal probes.
process_noise_covariancefunctionModel-noise covariance Σ_η,t of a step, from the stationary covariance.
product_operatorfunctionLazy product A B, applied right to left.
projectfunctionProjection A_X = K_Xℐ K_ℐℐ⁻¹ onto the inducing inputs via Cholesky solves.
pseudo_logdetfunctionLog pseudo-determinant: the log of the product of the non-zero eigenvalues.
qbfunctionRandomized QB factorisation A ≈ Q B with B = Qᵀ A.
quadratic_formfunctionQuadratic form xᵀ A⁻¹ x through a single solve.
randomized_eighfunctionPartial eigendecomposition of a symmetric operator by Rayleigh-Ritz.
randomized_nystromfunctionRandomized Nyström approximation  = U diag(γ̂) Uᵀ of a PSD A.
randomized_svdfunctionTruncated SVD A ≈ U diag(s) Vᵀ by randomized QB.
range_finderfunctionOrthonormal basis Q for the dominant range of A.
riemannian_psd_correctionfunctionRiemannian gradient correction for PSD precision updates.
root_decompositionfunctionRoot decomposition of an SPD operator: a tall factor R with A ≈ R Rᵀ.
root_inv_decompositionfunctionInverse-root decomposition: a tall factor R⁻ with A⁻¹ ≈ R⁻ (R⁻)ᵀ.
row_kronfunctionRow-wise Kronecker (face-splitting) product A • B of two sparse operators.
rp_choleskyfunctionRandomly pivoted partial Cholesky of a PSD matrix A.
rts_interpolatefunctionSmoothed marginal at an unobserved step t from filtered and smoothed states.
rts_samplefunctionJoint draws of the state path x_1:T from p(x_1:T | y_1:T).
rts_smootherfunctionRauch-Tung-Striebel backward smoother for kalman_filter output.
rw1_structurefunctionStructure matrix R = D₁ᵀ W D₁ of a first-order random walk.
rw2_structurefunctionStructure matrix R = D₂ᵀ D₂ of a second-order random walk.
safe_choleskyfunctionCholesky factor with adaptive diagonal jitter for near-singular matrices.
sample_joint_conditionalfunctionJoint draws of a partitioned Gaussian, and conditional draws from them.
sample_mvnfunctionDraw samples from 𝒩(μ, Σ), dispatching on the structure of Σ.
sandwichfunctionThe sandwich A Σ Aᵀ of two operators, keeping compatible structure.
scaled_operatorfunctionLazy scalar multiple c A, applied after the matvec.
schur_complementfunctionSchur complement K_XX − K_XZ K_ZZ⁻¹ K_ZX, kept as a low-rank update.
sde_autocovariancefunctionStationary autocovariance k(τ) of an SDE kernel at each lag τ.
sde_kl_divergencefunctionDrift path-KL between a linear and a nonlinear SDE along a Gaussian path.
selected_inversefunctionThe band of Σ = Λ⁻¹ for a symmetric positive-definite BlockTriDiag.
sigma_point_kalman_updatefunctionOne moment-matched update from evaluations the caller already has.
sigma_pointsfunctionScaled unscented sigma points and weights, 2 D_x + 1 of them.
site_evidence_correctionfunctionThe correction from the pseudo-observation marginal to the site evidence.
site_log_evidencefunctionlog Z of a Gaussian-site posterior, from its system A = K_XX + diag(d).
site_mean_var_from_naturalfunctionMean and variance of a site from its natural parameters.
site_natural_from_tiltedfunctionSite natural parameters that turn the cavity into the tilted moments.
site_posteriorfunctionThe Gaussian posterior of diagonal sites under a covariance-form prior.
sites_to_precisionfunctionBlock-diagonal precision of the sites, as a BlockTriDiag.
sketch_and_solvefunctionApproximate least squares from a sketch.
soar_taperfunctionSecond-order auto-regressive (SOAR) taper ρ(r) = (1 + |r| / L) exp(−|r| / L).
solvefunctionSolve A x = b with structural dispatch on the operator type.
solve_columnsfunctionSolve A X = B column by column, with structured dispatch per column.
solve_matrixfunctionSolve A X = B with one factorisation for the whole matrix right-hand side.
solve_rowsfunctionSolve A xᵢ = bᵢ for each row bᵢ of a matrix B, with one solve per row.
solve_with_known_valuesfunctionSolve A x = b on the unknowns, with x prescribed on the known set.
sparse_choleskyfunctionSparse Cholesky factorisation of a symmetric positive-definite operator.
sparse_conditionalfunctionSparse-GP conditional q(f_X) = ∫ p(f_X ∣ f_ℐ) q(f_ℐ) df_ℐ, per output r.
spde_precisionfunctionSPDE precision Λ_α = τ² K (C̃⁻¹ K)^(α−1) with K = κ² C̃ + G.
spde_precision_gridfunctionSPDE precision on a regular grid: a function of a Kronecker sum.
spingp_log_likelihoodfunctionLog marginal likelihood log p(y_1:T) of a zero-mean SpInGP prior.
spingp_posteriorfunctionPosterior mean μ_x|y and precision Λ_x|y of x_1:T under SpInGP.
split_diagonalfunctionRead A = K + diag(d) back into its kernel part K and its diagonal d.
sqrtfunctionPrincipal matrix square root A^½ with structural dispatch, lazy where possible.
sqrt_inv_matmulfunctionInverse square root times a matrix, A^−½ B, by contour quadrature.
sqrt_matmulfunctionSquare root times a matrix, A^½ B, by contour quadrature.
ssm_to_expectationsfunctionExpectation parameters (𝔼[x], 𝔼[x xᵀ]) of a chain from its marginals.
ssm_to_naturalsfunctionNatural parameters (Λ_x μ_x, −½ Λ_x) of a Gauss-Markov chain.
stable_squared_distancesfunctionSquared Euclidean distances between two point sets, centred and widened.
statistical_linear_regressionfunctionMoment-match a nonlinear conditional to a linear-Gaussian surrogate.
submatrixfunctionSub-matrix A[I, J] of an operator, without forming the full matrix.
sufficient_statsfunctionSufficient statistics (x, x xᵀ) of a Gaussian, over any batch axes.
sum_of_kroneckers_samplefunctionSample from 𝒩(0, K) with a matrix-free Lanczos square root.
sum_operatorfunctionLazy sum A = A_1 + … + A_D, applied one summand at a time.
svdfunctionSingular value decomposition of A, with structural dispatch.
svd_low_rank_plus_diagfunctionBuild A = diag(a) + U diag(s) Vᵀ from a truncated SVD.
svgp_variance_adjustmentfunctionSVGP variance adjustment operator Q = K_ℐℐ⁻¹ Σ_ℐ K_ℐℐ⁻¹ − K_ℐℐ⁻¹.
symbolic_choleskyfunctionSymbolic analysis of a sparse Cholesky factorisation (host, cached).
symmetric_tagconstantRe-exported from lineax.
symmetrizefunctionSymmetric part of the trailing two axes, removing round-off asymmetry.
theta_designfunctionIntegration points and log-weights over hyperparameters θ.
tikhonov_augmentfunctionObservation augmentation for Tikhonov-regularised EKI (TEKI).
to_mean_covfunctionMean μ and covariance Σ of a Gaussian in natural form.
toeplitz_samplefunctionDraw from 𝒩(0, toeplitz(t)) by circulant embedding and the FFT.
tracefunctionTrace tr(A) of an operator, with structural dispatch.
trace_and_diagfunctionJoint stochastic estimate of tr(A) and diag(A) from one probe pass.
trace_correctionfunctionTrace term of the Titsias collapsed ELBO, the Nyström approximation error.
trace_productfunctionTrace of a product of two operators, tr(A B), with structural dispatch.
tridiagonal_solvefunctionSolve a tridiagonal system A x = b from its three bands.
tridiagonal_solve_batchedfunctionSolve independent tridiagonal systems over leading batch axes.
tridiagonal_tagconstantRe-exported from lineax.
udl_decompositionfunctionFactorise a symmetric block-tridiagonal precision as Λ_x = U D Uᵀ.
udl_from_ssm_paramsfunctionBuild the UDLDecomposition of a Gauss-Markov chain’s precision.
udl_to_ssm_paramsfunctionRead the equivalent Gauss-Markov chain off a UDLDecomposition.
uncertain_bgplvm_predictfunctionMulti-output uncertain GP prediction for a Bayesian GP-LVM.
uncertain_gp_predictfunctionPredictive mean and variance of a GP at an uncertain input.
uncertain_gp_predict_mcfunctionMonte Carlo GP prediction at an uncertain input, by total variance.
uncertain_svgp_predictfunctionPredictive mean and variance of an SVGP at an uncertain input.
uncertain_vgp_predictfunctionPredictive mean and variance of a dense VGP at an uncertain input.
unit_diagonal_tagconstantRe-exported from lineax.
unwhitenfunctionUnwhiten a variational mean: μ_ℐ = L_ℐℐ μ_z.
unwhiten_covariancefunctionUnwhiten a variational covariance: Σ_ℐ = L_ℐℐ Σ_z L_ℐℐᵀ.
upper_triangular_tagconstantRe-exported from lineax.
variational_elbo_gaussianfunctionUncollapsed (SVGP) ELBO for a Gaussian likelihood.
variational_elbo_mcfunctionMonte Carlo ELBO for non-conjugate likelihoods.
vb_mean_correctionfunctionLow-rank VB correction of the Laplace mean (Van Niekerk & Rue, 2024).
whiten_covariancefunctionUnwhiten a variational covariance: Σ_ℐ = L_ℐℐ Σ_z L_ℐℐᵀ.
whitened_svgp_predictfunctionWhitened SVGP prediction: per-input means μ_n and variances σ²_n.
woodbury_solvefunctionSolve (A + U D Uᵀ) x = b by the Woodbury identity, without the operator.

Upstream: kernellib

Kernels (AbstractKernel, stationary and dot-product families), kernel operators and the pure kernel functions in kernellib.functional. pyrox-gp’s kernels wrap these.

kernellib

NameKindWhat it does
AbstractEstimatorclassConfigure, fit, predict.
AbstractFeatureMapclassA finite-dimensional approximation k(x, x') ≈ φ(x)ᵀ φ(x').
AbstractGraphclassWeighted, undirected graph without self-loops.
AbstractGreatCircleKernelclassk(x,x′)=σ2 ψ(θ(x,x′)/c)k(x, x') = \sigma^2\,\psi(\theta(x, x') / c) on (lon, lat) inputs.
AbstractKernelclassAnything that produces a Gram matrix.
AbstractMeshKernelclassA kernel on a triangle mesh given by its Laplace-Beltrami spectrum.
AbstractPointwiseKernelclassA kernel defined by k(x, x').
AbstractSphereSeriesKernelclassA kernel on S2S^2 given by its Laplace-Beltrami spectrum Φ(λ)\Phi(\lambda).
AbstractStationaryKernelclassk(x, x') = variance * shape(||(x - x') / lengthscale||²).
ActiveDimsclassApply a kernel to a subset of input dimensions.
AdvectedclassA frozen spatial field moving at a constant velocity.
CKAAccumulatorclassRunning mini-batch CKA (Nguyen, Raghu & Kornblith, 2021).
ChordalclassA Euclidean kernel on points of the sphere, k0(R u(x),R u(x′))k_0(R\,u(x), R\,u(x')).
ConstantclassConstant kernel, k(x, x') = sigma^2.
CosineclassCosine kernel, sigma^2 cos(2 pi ||x - x'|| / p).
CubicclassCubic covariance model, compactly supported.
CurlFreeclassCurl-free kernel: the covariance of a gradient field F=∇ΦF = \nabla\Phi.
CurlFreeFeaturesclassHilbert-space features of a curl-free 2-D vector field.
Derivativeclass∂xi∂xj′k(x,x′)\partial_{x_i} \partial_{x'_j} k(x, x') for fixed input dimensions.
DerivativeIndexedclassJoint covariance of a GP’s values and partial derivatives.
DistanceclassDistance-induced kernel, k(x, x') = σ² (|x|^a + |x'|^a - |x - x'|^a) / 2.
DivergenceFreeclassDivergence-free kernel: the covariance of a rotated gradient field.
DivergenceFreeFeaturesclassHilbert-space features of a divergence-free 2-D vector field.
EARTH_RADIUS_KMconstantRe-exported from builtins.
EigenProclassKernel regression by EigenPro-preconditioned SGD (Ma & Belkin, 2017).
EigenProPreconditionerclassSpectral correction state for EigenPro kernel SGD.
FalkonclassNyström kernel ridge regression solved by Falkon (Rudi et al., 2017).
FalkonInfoclassConvergence report of a falkon_solve run.
FalkonPreconditionerclassThe two upper-triangular Cholesky factors of the Falkon preconditioner.
FastFoodFeaturesclassFastFood random features (Le, Sarlós & Smola, 2013) for any kernel with a spectral sampler.
FastFoodParamsclassThe random structure of a FastFood feature map.
FeatureKernelclassInner product of features, k(x,x′)=⟨ϕ(x),ϕ(x′)⟩k(x, x') = \langle \phi(x), \phi(x') \rangle.
GeneralizedCauchyclassGeneralized Cauchy covariance model.
GeometricAnisotropyclassA rotated, stretched stationary kernel: a correlation ellipse or ellipsoid.
GibbsclassGibbs kernel: a lengthscale that varies with location.
GneitingclassGneiting’s non-separable space-time covariance.
GraphclassSparse weighted graph: a static topology and traced edge weights.
GraphEigenFeaturesclassLow-rank features of GraphMatern / GraphHeat from Laplacian eigenpairs.
GraphHeatclassGraph heat (diffusion) kernel on node indices.
GraphMaternclassGraph Matérn kernel on node indices (Borovitskiy et al., 2021).
GraphTopologyclassStatic, hashable edge list of an undirected graph without self-loops.
GreatCircleAskeyclassAskey’s truncated power kernel, ψ(t)=(1−t)+τ\psi(t) = (1 - t)_+^\tau.
GreatCircleCauchyclassGeneralized Cauchy kernel, ψ(t)=(1+tα)−τ/α\psi(t) = (1 + t^\alpha)^{-\tau/\alpha}.
GreatCircleExponentialclassExponential kernel of the great-circle angle, ψ(t)=e−t\psi(t) = e^{-t}.
GreatCirclePoweredExponentialclassPowered exponential kernel, ψ(t)=e−tα\psi(t) = e^{-t^\alpha}.
GreatCircleSphericalclassThe geostatistics spherical model of the great-circle angle.
GreatCircleWendlandclassC²- or C⁴-Wendland kernel of the great-circle angle.
GridGraphclassRegular lattice graph that never stores its edges.
HelmholtzclassHelmholtz-decomposition kernel: curl-free plus divergence-free parts.
HelmholtzFeaturesclassHelmholtz features: curl-free plus divergence-free columns.
HoleEffectclassHole-effect (cardinal sine, “wave”) covariance model.
ImplicitCrossKernelOperatorclassMatrix-free rectangular kernel operator K(X, Z) \cdot v.
ImplicitKernelOperatorclassMatrix-free kernel operator: (K + sigma^2 I) v via sequential scan.
JunSteinclassAxially symmetric kernel of Jun & Stein (2008), LxLyk0(x,y)L_x L_y k_0(x, y).
KNNGraphclassA directed k-nearest-neighbour graph, self excluded.
KRRclassKernel ridge regression.
KernelDensityclassWeighted Parzen density p^(x)=1c∑iβik(x,xi)\hat p(x) = \frac1c\sum_i\beta_i k(x, x_i).
KernelLocalityPreservingProjectionsclassKernel locality preserving projections.
KernelOperatorclassKernel matrix operator with efficient first-order autodiff.
KernelPCAclassKernel principal component analysis.
KernelSchrodingerProjectionsclassKernel Schrödinger eigenmap projections.
KroneckerFeaturesclassFeatures of a separable kernel ksktk_s k_t as a product of two maps.
LaplaceEigenfunctionFeaturesclassHilbert-space (HSGP) approximation of a stationary kernel on a box.
LaplacianEigenmapsclassLaplacian eigenmaps (Belkin & Niyogi, 2003) of the k-NN graph of X.
LatitudeScaledclassAmplitude modulation by latitude, k(x,y)=s(ϕx) s(ϕy) k0(x,y)k(x, y) = s(\phi_x)\,s(\phi_y)\,k_0(x, y).
LegendreLatitudeFnclassA function of latitude, f(ϕ)=∑j=0J−1wj Pj(sin⁡ϕ)f(\phi) = \sum_{j=0}^{J-1} w_j\,P_j(\sin\phi).
LinearclassLinear kernel, k(x, x') = sigma^2 x^T x' + b.
LinearTransformclassA stationary kernel of a linearly transformed lag.
LocalityPreservingProjectionsclassLocality preserving projections (He & Niyogi, 2003).
MaternclassMatern kernel with closed-form nu in {0.5, 1.5, 2.5}.
MeshHeatclassHeat (diffusion) kernel on a triangulated surface.
MeshLaplaceFeaturesclassFEM Laplace-Beltrami eigenvector features of a mesh kernel.
MeshMaternclassMatérn kernel on a triangulated surface (Borovitskiy et al. 2020).
ModulatedclassA kernel with an input-dependent amplitude, k(x,x′)=a(x) k0(x,x′) a(x′)k(x, x') = a(x)\, k_0(x, x')\, a(x').
NystromFeaturesclassNyström features (Williams & Seeger, 2001) for any kernel.
OrthogonalRandomFeaturesclassOrthogonal random features (Yu et al., 2016).
PaciorekSchervishclassPaciorek-Schervish kernel: a location-dependent anisotropy matrix.
PentasphericalclassPentaspherical covariance model, compactly supported.
PeriodicclassPeriodic (MacKay) kernel on the Euclidean distance.
PeriodicFeaturesclassExact truncated Fourier features of a 1-D Periodic kernel.
PeriodisedclassMake any kernel periodic: apply it to inputs wrapped onto circles.
PermutationTestResultclassOutcome of permutation_test.
PolynomialclassPolynomial kernel, k(x, x') = sigma^2 (x^T x' + b)^d.
ProductclassElementwise product of kernels, k(x, x') = prod_i k_i(x, x').
RBFclassRadial basis function (squared exponential) kernel.
RandomAdvectionRBFclassThe frozen-field RBF averaged over a Gaussian velocity.
RandomFourierFeaturesclassRandom Fourier features (Rahimi & Recht, 2007).
RationalQuadraticclassRational quadratic kernel, a scale mixture of RBFs.
ResidualclassWhat an approximation misses, k(x,x′)−k~(x,x′)k(x, x') - \tilde k(x, x').
RootedTreeclassA tree with one root: every non-root node has exactly one parent.
ScaledclassA kernel times a scalar, k(x, x') = scale * k_0(x, x').
SchrodingerEigenmapProjectionsclassSchrödinger eigenmap projections (SEP): linear Schrödinger eigenmaps.
SchrodingerEigenmapsclassSchrödinger eigenmaps (Czaja & Ehler, 2013) of the k-NN graph of X.
ShiftclassInput warp x -> x - offset; offset is scalar or per dimension.
SlepianFeaturesclassFeatures of a zonal kernel concentrated on a spherical cap.
SphereHeatclassHeat (diffusion, squared-exponential) kernel on the sphere.
SphereMaternclassIntrinsic Matérn kernel on the sphere (Borovitskiy et al. 2020).
SphereSeriesclassA sphere kernel from any user spectrum Φ(λ)≥0\Phi(\lambda) \ge 0.
SphericalclassSpherical covariance model, compactly supported.
SphericalHarmonicFeaturesclassWeighted real spherical harmonics up to degree LL for a zonal kernel.
StableclassStable (powered exponential) covariance model.
StretchclassInput warp x -> x / scale; scale is scalar or per dimension.
SumclassSum of kernels, k(x, x') = sum_i k_i(x, x').
TailDownclassTail-down covariance on a rooted tree (Ver Hoef & Peterson, 2010).
TailUpclassTail-up covariance on a rooted tree (Ver Hoef & Peterson, 2010).
TanhclassHyperbolic-tangent kernel, k(x, x') = sigma^2 tanh(gamma x^T x' + c0).
TaperedclassA covariance multiplied by a compactly supported taper.
TaylorStatisticsclassThe sides and angle of a kernel Taylor-diagram triangle.
TreeSitesclassPairwise geometry of N sites on a RootedTree (host-computed).
VariogramclassA binned empirical semivariogram.
WarpedclassApply a kernel to warped inputs, k(x, x') = k_0(w(x), w(x')).
WendlandclassWendland covariance model, compactly supported.
WhiteclassWhite-noise kernel, sigma^2 delta(x, x').
adjacency_matrixfunctionSymmetric weighted adjacency matrix of a k-NN graph.
barrier_potentialfunctionDiagonal potential that is strength at indices and 0 elsewhere.
batched_kernel_matvecfunctionCompute K(X, Z) @ v in memory-efficient batches.
batched_kernel_rmatvecfunctionCompute K(X, Z)^T @ u in memory-efficient batches.
ckafunctionCentred kernel alignment, HSIC(x,y)/HSIC(x,x) HSIC(y,y)\mathrm{HSIC}(x, y) / \sqrt{\mathrm{HSIC}(x, x)\,\mathrm{HSIC}(y, y)}.
combine_potentialsfunctionSeveral Schrödinger potentials as one: ∑kαkckVk\sum_k \alpha_k c_k V_k.
commute_time_kernelfunctionCommute-time kernel K=L+K = L^{+}, the Laplacian’s pseudo-inverse.
cosine_graph_kernelfunctionInverse-cosine kernel K=cos⁡(πL/4)K = \cos(\pi L / 4) (Smola & Kondor, 2003).
curlfunctionPer-point curl of a 2-D or 3-D vector field.
delaunay_graphfunctionThe edge graph of the Delaunay triangulation of X.
derivative_inputsfunctionRows [x, i] for DerivativeIndexed: values, then partials.
diffusion_kernelfunctionDiffusion (heat) kernel K=exp⁡(−βL)K = \exp(-\beta L) (Kondor & Lafferty, 2002).
distance_correlation_squaredfunctionSquared distance correlation (Székely et al., 2007), cka.
distance_covariance_squaredfunctionSquared distance covariance (Székely et al., 2007), 4 * hsic.
divergencefunctionPer-point divergence ∇⋅F(xn)=tr⁡Jn\nabla \cdot F(x_n) = \operatorname{tr} J_n.
draw_rff_cosine_basisfunctionDraw (variance, lengthscale, omega, phase, weights) for a kernel.
edge_weightsfunctionReweight a graph’s edges by a kernel on the nodes’ features.
eigenpro_correctionfunctionCompute the EigenPro eigenspace correction for one SGD mini-batch.
eigenpro_preconditionerfunctionBuild an EigenPro spectral preconditioner from a kernel operator.
eigenpro_step_sizefunctionReturn the EigenPro preconditioned step size for a batch size.
empirical_variogramfunctionBinned empirical semivariogram of y observed at X.
energy_distancefunctionEnergy distance (Székely & Rizzo, 2004), 2 * mmd_squared.
estimate_lengthscalefunctionA data-driven lengthscale for an RBF-type kernel.
evaluate_rff_cosine_pathsfunctionEvaluate the zero-mean RFF prior path(s) at inputs X.
falkon_preconditionerfunctionBuild the Falkon preconditioner from the inducing-point kernel matrix.
falkon_predictfunctionPredict with Nyström KRR weights: f(x∗)=∑jαj k(x∗,zj)f(x_*) = \sum_j \alpha_j\, k(x_*, z_j).
falkon_solvefunctionNyström kernel ridge regression weights by Falkon’s preconditioned CG.
fastfood_featuresfunctionFastFood feature map, Φ(x)=D−1/2 [cos⁡(Vx),sin⁡(Vx)]\Phi(x) = D^{-1/2}\,[\cos(Vx), \sin(Vx)].
fastfood_frequenciesfunctionThe dense frequency matrix VV that FastFood applies implicitly.
fastfood_operatorfunctionFastFood approximation of the RBF Gram matrix, K≈ΦΦ⊤K \approx \Phi\Phi^\top.
fastfood_paramsfunctionDraw the random structure for a FastFood RBF feature map.
fit_variogramfunctionFit a stationary kernel plus a nugget to an empirical variogram.
funk_hecke_coefficientsfunctionPer-degree spherical-harmonic spectrum of a kernel on a sphere.
gabriel_graphfunctionThe Gabriel graph of X.
gamma_to_lengthscalefunctionlengthscale = 1 / sqrt(2 gamma), the inverse of lengthscale_to_gamma.
gradientfunctionPer-point gradient ∇f(xn)\nabla f(x_n) of a scalar field.
graph_from_adjacencyfunctionThe sparse graph of a dense, symmetric adjacency matrix.
graph_from_edgesfunctionThe sparse graph of an edge list: the seam for other graph libraries.
graph_from_neighborsfunctionThe sparse, symmetric graph of a k-nearest-neighbour relation.
graph_laplacianfunctionGraph Laplacian of a symmetric adjacency matrix.
graph_null_spacefunctionOrthonormal basis of the Laplacian’s null space.
grid_graphfunctionThe lattice graph of an array of shape shape.
hadamard_transformfunctionRe-exported from gaussx.
hessianfunctionPer-point Hessian Hn[j,k]=∂2f(xn)/∂xj∂xkH_n[j, k] = \partial^2 f(x_n) / \partial x^j \partial x^k.
hsicfunctionHilbert-Schmidt Independence Criterion between paired samples.
hsic_penaltyfunctionThe HSIC penalty operator M=HKsH/n2M = H K_s H / n^2 on protected attributes.
implicit_cross_kernelfunctionCreate a matrix-free rectangular cross-kernel operator.
jacobianfunctionPer-point Jacobian Jn[i,j]=∂Fi(xn)/∂xjJ_n[i, j] = \partial F_i(x_n) / \partial x^j.
kernel_alignmentfunctionUncentred kernel alignment, ⟨K,L⟩F/(∥K∥F∥L∥F)\langle K, L\rangle_F / (\|K\|_F \|L\|_F).
knn_graphfunctionThe k-nearest-neighbour graph of X.
label_potentialfunctionNon-diagonal potential pulling together points that share a label.
laplacianfunctionPer-point Laplacian Δf(xn)=tr⁡Hn\Delta f(x_n) = \operatorname{tr} H_n.
laplacian_eigenmapfunctionLaplacian eigenmap of a weighted graph: smallest solutions of Ly=λDyL y = \lambda D y.
laplacian_eigpairsfunctionThe n smallest eigenpairs of a graph Laplacian.
laplacian_penaltyfunctionThe graph-smoothness penalty operator M=L/n2M = L / n^2.
lengthscale_gridfunctionLog-spaced lengthscales within decades orders of magnitude of center.
lengthscale_to_gammafunctiongamma = 1 / (2 lengthscale^2), the scikit-learn RBF parameter.
matern_graph_kernelfunctionGraph Matérn kernel K=UΦ(Λ)U⊤K = U \Phi(\Lambda) U^\top (Borovitskiy et al., 2021).
mesh_graphfunctionThe edge graph of a triangle mesh.
mmd_squaredfunctionSquared maximum mean discrepancy between samples X and Y.
n_components_graphfunctionNumber of connected components (an isolated node is one).
nearest_neighborsfunctionThe n_neighbors nearest other points of every point in X.
nystrom_kernelfunctionThe Nyström kernel kZ(x,x′)=k(x,Z)KZZ−1k(Z,x′)k_Z(x, x') = k(x, Z) K_{ZZ}^{-1} k(Z, x').
nystrom_operatorfunctionNystrom low-rank kernel approximation.
permutation_testfunctionPermutation p-value for a statistic that is large under the alternative.
point_sensitivityfunctionPer-sample sensitivity qn=1D∑jτ(∂jf(xn))q_n = \frac1D \sum_j \tau(\partial_j f(x_n)).
radius_graphfunctionThe graph joining points within radius of each other.
radius_neighborsfunctionThe other points within radius of every point, at most max_neighbors of them.
random_walk_kernelfunctionpp-step random-walk kernel K=(aI−L)pK = (aI - L)^p (Smola & Kondor, 2003).
regularized_laplacian_kernelfunctionRegularised Laplacian kernel K=(I+σ2L)−1K = (I + \sigma^2 L)^{-1}.
relative_neighborhood_graphfunctionThe relative neighbourhood graph of X.
rff_operatorfunctionRandom Fourier Features kernel approximation.
schrodinger_eigenmapfunctionSchrödinger eigenmap: smallest solutions of (L+αV)y=λDy(L + \alpha V) y = \lambda D y.
select_landmarksfunctionIndices into X of n_landmarks distinct landmarks.
sensitivityfunctionPer-feature sensitivity map s^j=1N∑nτ(∂jf(xn))\hat s_j = \frac1N \sum_n \tau(\partial_j f(x_n)).
spatial_spectral_graphfunctionSpatial-spectral graph for images (Cahill, Czaja & Messinger, 2014).
spatial_spectral_potentialfunctionSpatial-spectral potential for images (Cahill, Czaja & Messinger, 2014).
structure_matrixfunctionThe Besag (ICAR) structure matrix R=LR = L, optionally BYM2-scaled.
tapered_operatorfunctionThe tapered Gram K(X,X)∘T(X,X)K(X, X) \circ T(X, X) as a sparse gaussx operator.
taylor_statisticsfunctionRadii, correlation and distance for a kernel Taylor diagram.
to_cross_operatorfunctionK(X1, X2) as a rectangular linear operator.
to_functax_kernelfunctionkernel as the callable functax’s kernel schemes take.
to_operatorfunctionK(X, X) (+ noise * I) as a symmetric, PSD-tagged linear operator.
vector_inputsfunctionPoint-major rows [x_n, i] for the vector-field kernels.

kernellib.functional

NameKindWhat it does
EARTH_RADIUS_KMconstantRe-exported from builtins.
center_cross_kernelfunctionCentre a cross-kernel matrix with the training Gram’s statistics.
center_kernelfunctionCenter a kernel matrix: H K H.
centering_operatorfunctionCentering matrix H = I - (1/n) \mathbf{1}\mathbf{1}^T.
chordal_distancefunctionPairwise chordal (straight-line, through the sphere) distance.
ckafunctionCentered kernel alignment.
constant_kernelfunctionConstant kernel.
cosine_kernelfunctionCosine kernel.
cubic_kernelfunctionCubic covariance model, compactly supported on r < 1.
distance_kernelfunctionDistance-induced kernel (Sejdinovic et al., 2013).
generalized_cauchy_kernelfunctionGeneralized Cauchy covariance model (Gneiting & Schlather 2004).
graph_heat_spectrumfunctionHeat-kernel spectrum Φ(λ)=σ2exp⁡(−ℓ2λ/2)\Phi(\lambda) = \sigma^2 \exp(-\ell^2 \lambda / 2).
graph_matern_spectrumfunctionGraph Matérn spectrum Φ(λ)=σ2(2ν/ℓ2+λ)−ν\Phi(\lambda) = \sigma^2 (2\nu/\ell^2 + \lambda)^{-\nu}.
great_circle_distancefunctionPairwise great-circle distance R θR\,\theta between (lon, lat) points.
hole_effect_kernelfunctionHole-effect (cardinal sine) covariance model.
hsicfunctionHilbert-Schmidt Independence Criterion from two kernel matrices.
kernel_addfunctionPointwise sum of two already-evaluated Gram matrices.
kernel_mulfunctionPointwise (Hadamard) product of two already-evaluated Gram matrices.
linear_kernelfunctionLinear kernel.
lonlat_to_unitfunctionUnit vectors in R³ for (lon, lat) points.
matern_kernelfunctionMatern kernel with closed-form nu in {1/2, 3/2, 5/2}.
mmd_squaredfunctionBiased squared Maximum Mean Discrepancy.
pentaspherical_kernelfunctionPentaspherical covariance model, compactly supported on r < 1.
periodic_kernelfunctionPeriodic (MacKay) kernel.
polynomial_kernelfunctionPolynomial kernel.
rational_quadratic_kernelfunctionRational quadratic kernel.
rbf_kernelfunctionRadial basis function (squared exponential) kernel.
spherical_kernelfunctionSpherical covariance model, compactly supported on r < 1.
stable_kernelfunctionStable (powered exponential) covariance model.
stable_rbf_kernelfunctionRBF (squared exponential) kernel with mixed-precision stability.
tanh_kernelfunctionHyperbolic-tangent (sigmoid) kernel.
wendland_kernelfunctionWendland covariance model, compactly supported on r < 1.
white_kernelfunctionWhite-noise kernel.

Upstream: geonnax

Deterministic Equinox network cores and encoders. pyrox-nn wraps a geonnax core and swaps its parameters for sites.

geonnax

NameKindWhat it does
AntiAliasedActivationclassA pointwise nonlinearity between band-limited function spaces.
AttentionclassPre-norm multi-head self-attention with cosine (QK-normalised) similarity.
BasisSpectralConvclassSpectral convolution in a precomputed basis: per-mode channel mixing.
BasisTransformclassFrozen analysis and synthesis pair for a precomputed basis.
BlockclassConv, GroupNorm, SiLU: the residual-block primitive.
CNOclassConvolutional Neural Operator: lift → U-Net of band-limited blocks → project.
CNOBlockclassConvolution then band-limited activation: the CNO I, D and U blocks.
CNOResBlockclassThe CNO residual (R) block, v ↦ v + K₂ Σ K₁ v.
CPTensorclassCanonical-Polyadic (CP / PARAFAC) factorization.
Cartesian3DEncoderclassLift a single longitude and latitude onto the unit sphere S².
ConditionedINRclassWrap an inner network’s per-layer activations with conditioners.
ConvGRUCellclassA convolutional GRU cell: one step of the GRU with convolutions.
ConvLSTMCellclassA convolutional LSTM cell: one step of the LSTM with convolutions.
ConvLSTMStateclassThe state of a ConvLSTMCell: the hidden field h and the cell field c.
ConvNeXtBlockclassConvNeXt-V2 block: depthwise conv, norm, MLP with GRN (Woo et al., 2023).
ConvolutionalNeuralOperatorclassConvolutional Neural Operator: lift → U-Net of band-limited blocks → project.
CyclicEncoderclassEncode a single periodic input as concatenated cosine and sine features.
DeepVSSGPCoreclassDeterministic deep RFF spectral core.
Deg2RadclassElement-wise conversion from degrees to radians.
DenseRank1classRank-1 ensemble dense layer, the deterministic BatchEnsemble core.
DenseTensorclassA full, un-factorised tensor T.
DomainPaddingclassZero-pad spatial axes by a fraction of their size, then crop back.
DownsampleclassFactor-2 downsample by space-to-depth, then a 1×1 convolution.
FFTConvclassA “same” convolution with a full kernel, computed as a product of spectra.
FNOclassFourier Neural Operator: lifting, Fourier blocks, then projection.
FNOBlockclassOne Fourier layer: a spectral convolution plus a pointwise skip.
FourierFilterclassSingle Fourier filter, g(x) = sin(Ω x + φ).
FourierNetclassMultiplicative Fourier Filter Network (Fathony et al., 2021).
FourierNeuralOperatorclassFourier Neural Operator: lifting, Fourier blocks, then projection.
GaborFilterclassSingle Gabor filter, a sinusoid under a Gaussian envelope.
GaborNetclassMultiplicative Gabor Filter Network (Fathony et al., 2021).
GaussianFourierEncoderclassGaussian random Fourier-feature positional encoding (Tancik et al., 2020).
GaussianRegressionHeadclassHeteroscedastic Gaussian regression head (mean and log-scale).
GeneratedSirenclassWrapper around a SIREN whose layers consume generated weights.
GeoContextEncoderclassEncode geoscience metadata into a single context vector.
GeoFNOclassGeo-FNO: a Fourier neural operator on per-sample point clouds.
GlobalResponseNormclassGlobal Response Normalization (Woo et al., 2023, “ConvNeXt-V2”).
HeteroscedasticHeadclassShared state and init for the FA-noise heteroscedastic layers.
HybridSphericalSlepianEncoderclassConcatenate low-bandwidth global SHs with local Slepian cap modes.
HyperSIRENfunctionBuild the NIF-style ShapeNet and ParameterNet composite.
LNOclassLocal Neural Operator: pad → local core → crop, marched with jax.lax.scan.
LaplaceRandomFeatureCovarianceclassLaplace-approximation precision for an SNGP output head.
LayerNormEnsembleclassPer-ensemble-member LayerNorm, the deterministic core.
LearnedDeformationclassA learned chart from the physical domain onto the latent torus (Geo-FNO).
LinearAttentionclassPre-norm linear attention, linear in the number of spatial positions.
LinearChainCRFclassDeterministic linear-chain CRF: forward algorithm plus Viterbi decoding.
LocalConvclassA locally connected layer: a convolution whose kernel differs at every location.
LocalNeuralOperatorclassLocal Neural Operator: pad → local core → crop, marched with jax.lax.scan.
LonLatScaleclassAffine-rescale a single longitude and latitude pair into [-1, 1].
MCSigmoidDenseFAclassHeteroscedastic multi-label output layer (FA noise and sigmoid).
MCSoftmaxDenseFAclassHeteroscedastic multi-class output layer (FA noise and softmax).
MSWTclassMulti-Scale Wavelet Transformer operator (Wang et al., 2026).
MSWTBlockclassPre-norm wavelet-attention block: an attention residual, then a feed-forward one.
ManifoldNOclassManifold neural operator: lifting, basis blocks and projection.
ManifoldNOBlockclassOne manifold-operator layer: a basis spectral conv plus a pointwise skip.
MixtureOfGaussiansDenseHeadclassDeterministic mixture-density-network output head.
MultiHeadAttentionBEclassMulti-head attention with BatchEnsemble rank-1 projections.
MultiScaleSIRENclassParallel frequency-banded SIRENs summed at the readout.
MultiScaleWaveletTransformerclassMulti-Scale Wavelet Transformer operator (Wang et al., 2026).
NCPContinuousPerturbclassInput perturbation for the Noise Contrastive Prior pattern.
NestedResidualUNetclassA small residual U-Net used as one stage block (Qin et al., 2020, “U²-Net”).
NeuralFieldMLPclassThe BayesNF spatiotemporal network as a deterministic equinox.Module.
OrthogonalRandomFeaturesclassOrthogonal Random Features (Yu et al., 2016), a variance-reduced RFF.
RandomFeatureGaussianProcessclassSNGP output layer (Liu et al., 2020), deterministic core.
Rank1ProjInitclassOne rank-1 BatchEnsemble projection, bundled as a single pytree leaf.
ResnetBlockclassTwo Blocks with squeeze-excitation and a residual skip.
SFNOclassSpherical Fourier Neural Operator: lifting, spherical blocks, then projection.
SIRENclassMulti-layer sinusoidal representation network (Sitzmann et al., NeurIPS 2020).
SeparableINRclassA rank-r separable neural field over A input axes.
SirenDenseclassSine-activated dense layer, the single primitive of a SIREN.
SirenLayerSpecclassStatic per-layer metadata shared by deterministic and Bayesian SIRENs.
SirenLayerTypefunctionRe-exported from typing.
SlepianEncoderclassDeterministic Slepian-cap positional encoder on S².
SpectralConvclassFourier spectral convolution over num_spatial_dims = len(n_modes) axes.
SpectralNormalizationclassWrap a linear layer so that it is approximately c-Lipschitz.
SphericalFNOBlockclassOne spherical Fourier layer: a spherical spectral convolution plus a skip.
SphericalHarmonicEncoderclassReal spherical-harmonic features on the unit 2-sphere for a single point.
SphericalSpectralConvclassMix channels with one matrix per spherical-harmonic degree.
SphericalWaveletConvclassMix channels with one matrix per needlet scale.
SqueezeExcitationclassSqueeze-and-Excitation channel gating (Hu et al., 2018).
StageclassOne encoder or decoder stage: a leaf block, then an optional nested U-Net.
StandardizedConvclassConvolution with optional on-the-fly weight standardisation.
TTTensorclassTensor-Train (Matrix-Product) factorization.
TuckerTensorclassTucker factorization: a small core contracted with per-mode factor matrices.
UNetclassDimension-flexible U-Net with modern blocks, attention and nested stages.
UpsampleclassFactor-2 upsample by pixel shuffle: a 1×1 convolution, then depth-to-space.
WNOclassWavelet Neural Operator: lifting, wavelet blocks, then projection.
WNOBlockclassOne wavelet layer: a wavelet convolution plus a pointwise skip.
WaveletAttentionclassSelf-attention performed inside the wavelet domain (Wang et al., 2026).
WaveletConvclassWavelet-domain channel mixing, the wavelet analogue of SpectralConv.
WaveletNeuralOperatorclassWavelet Neural Operator: lifting, wavelet blocks, then projection.
WindowedAttentionclassSwin-style windowed multi-head self-attention with cosine similarity.
XUNetclassDimension-flexible U-Net with modern blocks, attention and nested stages.
apply_rank1_projfunctionApply the per-member rank-1 projection yᵢ = ((x ⊙ sᵢ) W) ⊙ rᵢ + bᵢ.
band_limited_resizefunctionResample a periodic field onto a new grid by Fourier truncation or padding.
build_siren_specsfunctionProduce the per-layer specs of a SIREN: first, hidden layers, then last.
cno_receptive_radiusfunctionEffective receptive radius, in grid points, of a CNO on its input grid.
hetero_noisy_logitsfunctionSample heteroscedastic logits for one example.
init_factorized_tensorfunctionConstruct a factorized tensor of the requested kind.
init_rank1_projfunctionDraw a Glorot kernel, per-member rank-1 vectors and zero biases.
log_spaced_omegasfunctionReturn num_scales log-spaced frequencies spanning the closed band.
mfn_forwardfunctionPure-JAX MFN forward pass for user-supplied filter and linear callables.
orthogonal_blocksfunctionBuild the ORF frequency matrix W = [Q₁S₁, …, Q_K S_K].
scan_cellfunctionRun a recurrent cell over the leading time axis with jax.lax.scan.
siren_W_limitfunctionReturn the half-width a of the U(-a, a) weight init for a SIREN layer.

Upstream: functax

Bases (Fourier, spherical-harmonic, Slepian, local, …) in one family module each, grids and point sets, and interpolation plans with their sparse stencils. pyrox-gp and pyrox-nn take their bases from it; pyrox-lgm’s grid SPDE.project_points is a functax.interp Linear plan.

functax.basis.features

NameKindWhat it does
fourier_featuresfunctionCosines and sines of a coordinate at dyadic frequencies.
gaussian_window_featuresfunctionGaussian windows in time, the temporal analogue of an RBF column.
rff_cosine_forwardfunctionRandom Fourier features with random phases, one cosine per frequency.
rff_forwardfunctionRandom Fourier features at given frequencies, cosines then sines.
seasonal_featuresfunctionCosines and sines of a time at the harmonics of given periods.
seasonal_frequenciesfunctionThe frequencies of the seasonal features, as Python lists.

functax.basis.fourier

NameKindWhat it does
fourier_basisfunctionThe tensor-product Laplacian eigenpairs on the box [−L, L]^D.
fourier_basis_1dfunctionThe first num_basis Laplacian eigenfunctions on [−L, L].
fourier_eigenvaluesfunctionThe eigenvalues of fourier_basis alone, λ_{j₁, …, j_D} = ∑_d λ_{j_d}.
fourier_eigenvalues_1dfunctionThe eigenvalues λ_j = (jπ/(2L))² of fourier_basis_1d, j = 1, …, num_basis.

functax.basis.sphere

NameKindWhat it does
harmonic_degreesfunctionThe degree ℓ of each column of real_spherical_harmonics.
needlet_basisfunctionSpherical needlets at the scales j = 0, …, j_max, plus the constant.
needlet_windowfunctionThe needlet window b: smooth, supported in [1/B, B], a partition of unity.
real_spherical_harmonicsfunctionThe real spherical harmonics Y_ℓm up to degree l_max.
shell_basisfunctionSpherical harmonics times radial polynomials on a spherical shell.
vector_spherical_harmonicsfunctionThe gradient and toroidal vector spherical harmonics for 1 ≤ ℓ ≤ ℓ_max.

functax.basis.slepian

NameKindWhat it does
SlepianBasisclassThe Slepian functions of a general region, in the real harmonic basis.
SlepianCapBasisclassA Slepian cap eigendecomposition in the real spherical-harmonic basis.
shannon_numberfunctionThe Shannon number N = (ℓ_max + 1)² A / (4π), the count of concentrated modes.
slepian_cap_basisfunctionA Slepian basis for an axisymmetric spherical cap.
slepian_cap_eigh_per_mfunctionThe cap Slepian eigenproblem D c = λ c, solved one azimuthal block at a time.
slepian_concentration_matrixfunctionThe concentration matrix D_ij = ∫_cap Y_i Y_j dΩ of a north-pole cap.
slepian_polar_gap_basisfunctionThe Slepian functions of the band between two polar caps (a polar gap).
slepian_region_basisfunctionThe Slepian functions of a region given by a quadrature over it.
spherical_polygon_maskfunctionWhich points lie inside a spherical polygon.

functax.basis.local

NameKindWhat it does
gabor_framefunctionA bank of Gabor atoms, Gaussian envelopes times oscillations.
gabor_frame_gridfunctionA dyadic radial Gabor frame over a box.
rbf_basisfunctionA placeable radial basis at given centres and widths.
spherical_rbf_basisfunctionA placeable radial basis on the unit sphere, in geodesic distance.
wavelet_basis_1dfunctionThe orthonormal 1-D DWT synthesis basis on a periodic grid of length n.
wavelet_basis_2dfunctionThe separable orthonormal 2-D DWT basis, the Kronecker product Φ_y ⊗ Φ_x.
wendland_c2functionThe Wendland C² kernel ψ(r) = (1 − r)₊⁴ (4r + 1).
wendland_c4functionThe Wendland C⁴ kernel ψ(r) = (1 − r)₊⁶ (35r² + 18r + 3)/3.

functax.basis.polynomial

NameKindWhat it does
associated_legendrefunctionThe associated Legendre functions P_ℓᵐ(t) for 0 ≤ m ≤ ℓ ≤ ℓ_max.
associated_legendre_indicesfunctionThe (ℓ, m) of each column of associated_legendre.
legendre_polynomialsfunctionThe Legendre polynomials P₀(t), …, P_{ℓ_max}(t).
legendre_seriesfunctionThe Legendre series f(x) = ∑_ℓ c_ℓ P_ℓ(x), ℓ = 0, …, ℓ_max, elementwise.

functax.basis.vector

NameKindWhat it does
curlfree_basisfunctionCurl-free vector atoms, the gradients of the box Laplacian eigenfunctions.
divfree_basisfunctionDivergence-free vector atoms, the skew gradients of box stream functions.

functax.basis.eigen

NameKindWhat it does
cotangent_laplacian_eigpairsfunctionThe smallest eigenpairs of the cotangent Laplace–Beltrami operator.
eof_basisfunctionThe leading n_modes empirical orthogonal functions of a data matrix.
graph_laplacian_eigpairsfunctionThe num_basis smallest Laplacian eigenpairs of an undirected graph.

functax.geometry

NameKindWhat it does
AffineGridclassA regular 2-D grid given by an affine transform and a shape.
AxisclassOne strictly monotone coordinate axis, optionally periodic or in time.
CurvilinearGridclassA 2-D grid whose node coordinates are given per node, such as a swath.
MetricconstantRe-exported from typing.
PointsclassScattered sites, with the metric their distances use.
RectilinearGridclassA tensor-product grid with one Axis per dimension.
cartesian_to_tangentfunction3-D vectors w to their east and north components (w · e_east, w · e_north).
chebyshev_nodesfunctionThe Chebyshev nodes of degree N on [a, b], from b down to a.
chord_distancefunctionThe straight-line distance through the sphere between every pair.
ecef_to_lonlatfunctionEarth-centred, Earth-fixed coordinates to geodetic (λ, φ) and height.
enu_basisfunctionThe local east, north and up unit vectors at each point.
fibonacci_spherefunctionThe Fibonacci lattice: n near-uniform points on the unit sphere.
from_pixelfunctionMap fractional pixel (row, col) to coordinates (x, y): the inverse of to_pixel.
gauss_legendre_gridfunctionThe Gauss–Legendre grid on the sphere, with its quadrature weights.
geodesic_distancefunctionThe great-circle distance between every pair.
healpix_gridfunctionHEALPix pixel centres, each weighted by the equal pixel area.
icospherefunctionThe subdivided icosahedron, a quasi-uniform triangle mesh of the sphere.
latlon_gridfunctionThe regular cell-centred lon/lat grid, weighted by exact cell areas.
local_tangent_planefunctionProject points onto the tangent plane at origin, as (east, north).
lonlat_to_eceffunctionGeodetic (λ, φ) and height to Earth-centred, Earth-fixed coordinates.
lonlat_to_unitfunctionLift longitude and latitude onto the unit sphere.
mesh_vertex_areasfunctionThe lumped (barycentric) vertex areas of a triangle mesh.
pairwise_distancefunctionThe distance from every source to every target, in their shared metric.
pixel_centresfunctionThe x and y of every pixel centre of a grid, each of shape (rows, cols).
rotation_to_polefunctionThe rotation Q with Q e_up(centre) = (0, 0, 1).
slice_transformfunctionThe transform of the slice [row0::row_step, col0::col_step] of a raster.
spherical_polygon_areafunctionThe signed area of a spherical polygon with great-circle edges.
tangent_to_cartesianfunctionEast and north components (u, v) to the tangent vector u e_east + v e_north.
to_pixelfunctionMap coordinates (x, y) to fractional pixel (row, col), centres at integers.
unit_to_lonlatfunctionLongitude and latitude of vectors on (or off) the unit sphere.
windowfunctionThe row and column slices of the pixels that cover bounds.

functax.interp

NameKindWhat it does
AkimaclassAkima’s local cubic, as SciPy’s Akima1DInterpolator(method="akima").
BSplineclassA B-spline of order k on every axis: (k + 1)ᴰ taps, after the prefilter.
BSplineBasisclassThe centred B-spline of order k (degree k): k + 1 taps per axis.
BandedPrefilterclassc = B⁻¹ y per axis: the B-spline prefilter, separable on a grid.
BasisclassA local basis on one axis: S relative taps, and weights from the offsets.
BinningclassAggregate scattered samples into grid cells: Hᵀ y, normalised for the mean.
BinningPlanclassA plan from N samples to M cells: the sums, means or counts per cell.
BrownianBridgeclassThe Brownian bridge between the knots of one axis, cell by cell.
ChebyshevclassThe Chebyshev series of samples on Chebyshev nodes, read at arbitrary points.
ChebyshevFitclassc = Π C y: the first D_c Chebyshev coefficients of samples on Chebyshev nodes.
ChebyshevInterpolantclassA fitted Chebyshev series f̂(x) = ∑ₖ cₖ Tₖ(ξ(x)), read at targets by clenshaw.
ComposedPlanclassouter @ inner: H_outer H_inner 𝒮_inner, one plan with the product stencil.
ConservativeclassFirst-order conservative remapping: each target cell’s area-weighted mean.
CubicclassKeys cubic convolution on every axis: 4ᴰ taps per target, no prefilter.
CubicBasisclassKeys cubic convolution: taps i − 1 … i + 2, weights W(1 + t) … W(2 − t).
CubicSplineclassThe interpolating C² cubic spline, as scipy.interpolate.CubicSpline.
DelaunayclassLinear interpolation on a triangulation of the sources: D + 1 taps per target.
DerivativePlanclassA plan whose read-out holds basis derivatives: ∂ᵐf̂/∂x_dᵐ at the targets.
Fitclassc = 𝒮(y), applied once per field before the read-out.
FourierclassBand-limited Fourier resampling from N to M nodes of one periodic axis.
FourierReadoutclassH y = (M/N) Re(F_M⁻¹ S F_N y), band-limited resampling by two FFTs.
GaussianPlanclassA plan read as a Gaussian posterior: f(X_*) ∣ y ~ 𝒩(H 𝒮(y), Σ_{*∣y}).
HermiteFitclass[y; d] from y: the values in increasing-knot order and their slopes.
HermiteGeometryclassWhat a 1-D series plan’s Hermite read-out was built from.
IdentityclassThe fit of every local scheme: c = y.
InterpolantclassA fitted field f̂(x) = ∑ₛ wₛ(t(x)) c_{iₛ(x)}, read at any targets.
InverseDistanceclassInverse-distance weighting of the Q nearest scattered sources.
Kernelclassk(x, x′): the (M, N) cross-kernel of M targets and N sources.
KernelCovarianceclassΣ_{∣y} = K_* − H A⁻¹ Hᵀ, the posterior covariance of a kernel fit.
KernelReadoutclassThe dense read-out of a kernel scheme: f̂(X_*) = K_X c + P_ b.
KernelSolveclass[c; b] = A⁻¹ [y; 0], the saddle-point system of a kernel and a tail.
KrigingclassKriging: the best linear unbiased predictor under a covariance k and a drift.
LinearclassLinear on every axis: 2ᴰ taps per target, weights ∏_d (1 − t_d or t_d).
LinearBasisclassLinear: taps i and i + 1, with weights 1 − t and t.
LocalGeometryclassWhat a local plan was built from: the source, the target coordinates, the bases.
LocalSchemeclassA scheme with one local basis per axis and the identity fit.
NearestclassNearest neighbour on every axis: one tap per target, weight 1.
NearestBasisclassNearest neighbour: one tap, the closer of i and i + 1, with weight 1.
NonlinearDerivativePlanclass∂ᵐf̂/∂xᵐ of a nonlinear series plan: it reads, but has no fixed operator.
NonlinearPlanclassA plan whose fit depends on y: no fixed operator or adjoint, but linearize.
PchipclassMonotone piecewise cubic Hermite (Fritsch-Carlson), as SciPy’s PCHIP.
Planclassf̂(X_*) = H 𝒮(y), fitted once, applied to many fields.
PoliciesclassOutside the domain, at missing samples, and at the edges.
PolyharmonicclassThe polyharmonic spline φ(r) = ±rᵖ for odd p, ±rᵖ log r for even p.
PosteriorCovarianceclassΣ_{*∣y}, the (M, M) posterior covariance of the field at M targets.
RBFclassRadial basis function interpolation: f̂(x) = ∑ⱼ cⱼ k(x, xⱼ) + ∑ₚ bₚ pₚ(x).
RadialKernelclassk(x, x′) = φ(‖x − x′‖), Euclidean in the coordinates as given.
ReadGeometryclassWhat a plan’s stencil was built from, so Plan.derivative can rebuild it.
Readoutclassc ↦ f̂(X_*): the read-out of a plan, from coefficients to target values.
SchemeclassAn interpolation scheme: configuration, frozen into a Plan by plan.
SeriesInterpolantclassA 1-D series field f̂ read at targets chosen inside the trace.
SeriesSchemeclassA scheme on one axis with a cubic Hermite read-out and its own slopes.
SteffenclassSteffen’s monotone cubic: no overshoot between knots, by construction.
StencilclassA sparse read-out H: row k reads S source values at flat indices.
TensorclassOne local scheme per source axis, as one tensor stencil.
TransposedStencilclassf̂ = diag(w) Hᵀ y: a sampling stencil H used backwards, scaled per cell.
WendlandclassThe compact Wendland kernel φ(r) = ψ(r/ρ), zero for r ≥ ρ.
WindowedPlanclassplan[window]: the rows of a grid target inside a window, sources unchanged.
bsplinefunctionThe centred B-spline βᵏ of degree k at x.
check_outsidefunctionEnforce outside="raise" on the host; no-op for every other policy.
clenshawfunctionThe Chebyshev series f(x) = ∑ₖ cₖ Tₖ(ξ(x)) by Clenshaw’s recurrence.
composefunctionH = H_outer H_inner: apply inner first, then outer, as one stencil.
index_positionsfunctionThe fractional index position u of each target, so node j sits at u = j.
locatefunctionThe cell index i, the offset t ∈ [0, 1) and the inside flag of each target.
locate_curvilinearfunctionThe cell (i, j), the offset (s, t) and the inside flag of targets on a swath.
overlap_weights_1dfunctionThe (M, N) overlap lengths |cⱼ ∩ Cᵢ| of every target and source cell.
plan_keyfunctionsha256 hex of the scheme, the policies and both geometries’ bytes.
remap_tapsfunctionBring tap indices back onto [0, N − 1] by a boundary rule.
spline_polesfunctionThe poles zₚ of the order-k B-spline prefilter, as in scipy.ndimage.
tensor_stencilfunctionH = H₁ ⊗ … ⊗ H_D: one local basis per source axis, read at the targets.