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)¶
| Name | Kind | What it does |
|---|---|---|
call_context | function | Hold one per-call site cache open for module. |
call_contexts | function | Hold one per-call site cache open for each distinct module. |
freeze | function | module.frozen() under one call_context, or module if it cannot. |
Declarative wrappers for NumPyro param and sample sites. (pyrox._core.descriptors)¶
| Name | Kind | What it does |
|---|---|---|
PyroxParam | class | Lightweight metadata container for a parameter site. |
PyroxSample | class | Lightweight metadata container for a random sample site. |
Parameterized base class for GP-style modules. (pyrox._core.parameterized)¶
| Name | Kind | What it does |
|---|---|---|
Parameterized | class | Shared base for modules with priors, constraints, and mode switching. |
PyroxModule and pyrox_method — Equinox-to-NumPyro bridge primitives. (pyrox._core.pyrox_module)¶
| Name | Kind | What it does |
|---|---|---|
PyroxModule | class | Equinox module with NumPyro site registration and per-call caching. |
pyrox_method | function | Wrap 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)¶
| Name | Kind | What it does |
|---|---|---|
EnsembleMAP | class | NumPyro-like ensemble MAP/MLE runner. |
EnsembleResult | class | Output of a full EnsembleMAP.run / EnsembleVI.run. |
EnsembleState | class | Stacked state for an ensemble of optimizer runs. |
EnsembleVI | class | NumPyro-like ensemble variational-inference runner. |
ensemble_init | function | Initialize an ensemble of (params, opt_state) by vmap over keys. |
ensemble_loss | function | Build the filter_value_and_grad loss from a log-joint. |
ensemble_map | function | One-shot wrapper around EnsembleMAP. |
ensemble_predict | function | Vmap predict_fn over the leading ensemble axis of params. |
ensemble_step | function | Perform one ensemble update step on a batch. |
ensemble_vi | function | One-shot wrapper around EnsembleVI. |
Per-parameter-group optimizer helper. (pyrox.inference._param_groups)¶
| Name | Kind | What it does |
|---|---|---|
param_group_optimizer | function | Apply a different optimizer to each labelled parameter group. |
pyrox.likelihoods¶
| Name | Kind | What it does |
|---|---|---|
AbstractObservation | class | Observation model with its own hyperparameters. |
DistLikelihood | class | Observation model over any NumPyro distribution, . |
GaussianLikelihood | class | Gaussian observation model . |
Guide | class | Abstract base for variational posterior families. |
Likelihood | class | Abstract base for observation models. |
likelihood_accepts_inputs | function | Whether lik.log_prob takes the optional trailing X. |
pyrox-gp¶
pyrox_gp¶
Sparse SVGP variational guide families — concrete Guide types. (pyrox_gp._guides)¶
| Name | Kind | What it does |
|---|---|---|
DeltaGuide | class | Point-mass (MAP-style) variational posterior over inducing values. |
FullRankGuide | class | Full-rank Gaussian variational posterior over inducing values u. |
MeanFieldGuide | class | Diagonal Gaussian variational posterior over inducing values u. |
NaturalGuide | class | Natural-parameter Gaussian variational posterior over inducing values. |
WhitenedGuide | class | Whitened-coordinate Gaussian variational posterior over inducing values. |
Inter-domain inducing-feature families for sparse GPs. (pyrox_gp._inducing)¶
| Name | Kind | What it does |
|---|---|---|
DecoupledInducingFeatures | class | Decoupled mean / covariance inducing-feature bases (Cheng & Boots 2017). |
FourierInducingFeatures | class | VFF — Variational Fourier inducing features on . |
InducingFeatures | class | Protocol for inter-domain inducing features. |
LaplacianInducingFeatures | class | Inducing features from low-frequency graph Laplacian eigenvectors. |
SlepianInducingFeatures | class | Region-localized Slepian inducing features on . |
SphericalHarmonicInducingFeatures | class | VISH — inducing harmonics on (Dutordoir et al. 2020). |
funk_hecke_coefficients | function | Deprecated: use kernellib.funk_hecke_coefficients on a frozen kernel. |
Choosing inducing inputs from the data (P3). (pyrox_gp._inducing_init)¶
| Name | Kind | What it does |
|---|---|---|
init_inducing | function | Inducing inputs (M, D): rows of X picked by kernellib.select_landmarks. |
Sparse variational GP inference entry points. (pyrox_gp._inference)¶
| Name | Kind | What it does |
|---|---|---|
ConjugateVI | class | Natural-gradient / CVI update for sparse variational GPs. |
svgp_elbo | function | Structured SVGP ELBO as a differentiable scalar. |
svgp_factor | function | Register the structured SVGP ELBO as a NumPyro factor site. |
Advanced GP inference strategies for non-conjugate likelihoods. (pyrox_gp._inference_nongauss)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedNonGaussGP | class | GP conditioned on a non-Gaussian likelihood via an advanced strategy. |
ExpectationPropagation | class | Parallel expectation propagation (Minka 2001) with damping. |
GaussNewtonInference | class | Gauss-Newton inference: Newton loop with PSD-projected curvature. |
LaplaceInference | class | Laplace approximation via Newton iteration on the log posterior. |
PosteriorLinearization | class | Iterated statistical-linearization site updates. |
QuasiNewtonInference | class | MAP optimization via L-BFGS, Laplace covariance at convergence. |
gp_laplace_factor | function | Register the Laplace approximate GP evidence with NumPyro. |
Concrete kernel classes — Parameterized wrappers over the math primitives. (pyrox_gp._kernels)¶
| Name | Kind | What it does |
|---|---|---|
Constant | class | Constant kernel k(x, x') = sigma^2. |
Cosine | class | Cosine kernel sigma^2 cos(2 pi ||x - x'|| / period). |
Linear | class | Linear kernel sigma^2 x^T x' + bias. |
Matern | class | Matern kernel with nu in {0.5, 1.5, 2.5}. |
Periodic | class | Periodic (MacKay) kernel. |
Polynomial | class | Polynomial kernel sigma^2 (x^T x' + bias)^degree. |
RBF | class | Radial basis function (squared exponential) kernel. |
RationalQuadratic | class | Rational quadratic kernel. |
White | class | White-noise kernel sigma^2 delta(x, x'). |
Collapsed latent-factor regression — the decoder is marginalized, not fixed. (pyrox_gp._latent_factor)¶
| Name | Kind | What it does |
|---|---|---|
collapsed_lfr_log_prob | function | Log-likelihood with the linear decoder marginalized analytically. |
decoder_posterior | function | Closed-form matrix-normal posterior over the decoder. |
lfr_predictive_moments | function | Exact moments of the product of two independent Gaussians. |
warp_to_base | function | Map observations into the space where the factor model is linear. |
warped_decoder_posterior | function | Matrix-normal decoder posterior, read in the warped space. |
warped_lfr_log_prob | function | Collapsed latent-factor log-likelihood on warped observations. |
Model surface for collapsed latent-factor regression. (pyrox_gp._latent_factor_models)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedLatentFactorGP | class | Latent-factor posterior — MAP latents plus the decoder posterior. |
LatentFactorGPPrior | class | GP latent factors with an analytically marginalized linear decoder. |
latent_total_correlation | function | Total correlation of the fitted latent factors. |
lfr_factor | function | Register the collapsed latent-factor log-likelihood with NumPyro. |
lfr_model | function | MAP-over-latents collapsed latent-factor regression model. |
Data-driven initialisation of GPLVM-style latent variables (P1). (pyrox_gp._latent_init)¶
| Name | Kind | What it does |
|---|---|---|
latent_init | function | Initial latents (N, n_latent) for a GPLVM or latent-factor model. |
Observation models for GP inference. (pyrox_gp._likelihoods)¶
| Name | Kind | What it does |
|---|---|---|
BernoulliLikelihood | class | Binary classification likelihood with logit link, over gaussx.BernoulliLikelihood. |
GaussianLikelihood | class | Gaussian observation model , over gaussx.GaussianLikelihood. |
HeteroscedasticGaussianLikelihood | class | Gaussian regression with input-dependent noise, over gaussx.HeteroscedasticGaussianLikelihood. |
PoissonLikelihood | class | Count likelihood with log link, over gaussx.PoissonLikelihood. |
SoftmaxLikelihood | class | Multi-class classification likelihood with softmax link, over gaussx.SoftmaxLikelihood. |
StudentTLikelihood | class | Heavy-tailed regression , over gaussx.StudentTLikelihood. |
Model-facing GP entry points — GPPrior, ConditionedGP, and NumPyro hooks. (pyrox_gp._models)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedGP | class | GP conditioned on Gaussian-likelihood training observations. |
GPPrior | class | Finite-dimensional GP prior over a fixed training input set. |
GradientPosterior | class | Gaussian posterior over at test points (point-major). |
gp_factor | function | Register the collapsed GP log marginal likelihood with NumPyro. |
gp_sample | function | Sample a latent function f at the prior’s training inputs. |
Multi-output Gaussian-process kernels and inducing structures. (pyrox_gp._multi_output)¶
| Name | Kind | What it does |
|---|---|---|
ICMKernel | class | Intrinsic coregionalization model with one shared latent kernel. |
LMCKernel | class | Linear model of coregionalization for vector-valued GPs. |
MultiOutputInducingVariables | class | Shared inducing-point structure for LMC-style sparse workflows. |
OILMMKernel | class | Orthogonal instantaneous linear mixing model. |
SharedInducingPoints | class | Shared inducing inputs for multi-output latent GP collections. |
Multi-output GP model entry points — exact and sparse variational. (pyrox_gp._multi_output_models)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedMultiOutputGP | class | Multi-output GP conditioned on Gaussian-likelihood observations. |
ConditionedMultiOutputSparseGP | class | A sparse multi-output GP conditioned through a fitted guide. |
ConditionedOILMMGP | class | OILMM posterior — Q conditioned scalar GPs plus the mixing. |
MultiOutputGPPrior | class | Finite-dimensional multi-output GP prior over fixed training inputs. |
MultiOutputSparseGPPrior | class | Sparse multi-output GP prior over shared inducing inputs. |
OILMMGPPrior | class | Orthogonal-mixing multi-output GP prior with a projected exact posterior. |
mo_gp_factor | function | Register the collapsed multi-output GP marginal likelihood with NumPyro. |
mo_svgp_elbo | function | Structured multi-output SVGP ELBO as a differentiable scalar. |
mo_svgp_factor | function | Register the multi-output SVGP ELBO as a NumPyro factor site. |
oilmm_factor | function | Register the OILMM collapsed log marginal likelihood with NumPyro. |
Pathwise GP posterior samplers via Matheron’s rule. (pyrox_gp._pathwise)¶
| Name | Kind | What it does |
|---|---|---|
DecoupledPathwiseSampler | class | Sparse/decoupled pathwise sampler with RFF prior + inducing update. |
PathwiseFunction | class | Callable posterior function draw(s) produced by a pathwise sampler. |
PathwiseSampler | class | Exact-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)¶
| Name | Kind | What it does |
|---|---|---|
bbmm_solver | function | BBMM with a low-rank preconditioner (pyrox#557). |
matfree_solver | function | CG and a matfree-backed log-determinant, preconditioned (pyrox#557). |
preconditioned_cg_solver | function | Deprecated alias of matfree_solver, with its old arguments and defaults. |
Sparse GP prior — inducing-input variational foundation. (pyrox_gp._sparse)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedSparseGP | class | A sparse GP conditioned through a fitted guide on its inducing values. |
SparseGPPrior | class | GP prior parameterized over inducing inputs Z. |
Transformed Gaussian processes: a GP composed with a monotone warp. (pyrox_gp._warped)¶
| Name | Kind | What it does |
|---|---|---|
WarpedGaussianLikelihood | class | -- the transformed-GP model. |
warped_predictive_moments | function | Moments of under , by quadrature. |
Re-exported from upstream¶
| Name | Kind | What it does |
|---|---|---|
Kernel | class | Re-exported from kernellib. |
pyrox-nn¶
pyrox_nn¶
Bayesian Neural Field (BNF) layers — port of Google’s bayesnf. (pyrox_nn._bnf)¶
| Name | Kind | What it does |
|---|---|---|
BayesianNeuralField | class | The full Bayesian Neural Field architecture, wrapping geonnax.NeuralFieldMLP. |
FourierFeatures | class | Per-input dyadic-frequency Fourier basis. |
InteractionFeatures | class | Element-wise products on selected pairs of input columns. |
SeasonalFeatures | class | Period-and-harmonic cos/sin basis on a scalar time axis. |
Standardization | class | Apply a fixed-coefficient affine standardization. |
Bayesian conditioning primitives for pyrox_nn. (pyrox_nn._conditioning)¶
| Name | Kind | What it does |
|---|---|---|
BayesianAffineModulation | class | AffineModulation of gauss-flows-maps with Normal priors on the FiLM generator. |
BayesianConcatConditioner | class | ConcatConditioner of gauss-flows-maps with Normal priors on the projection. |
BayesianHyperLinear | class | HyperLinear of gauss-flows-maps with Normal priors on the generator only. |
ConditionedRFFNet | class | Conditional analogue of pyrox_nn.RandomKitchenSinks. |
HyperFourierFeatures | class | Random Fourier features with (W, b, log_lengthscale) from a parameter net. |
Bayesian / uncertainty-aware dense layers. (pyrox_nn._dense)¶
| Name | Kind | What it does |
|---|---|---|
DenseDVI | class | Deterministic Variational Inference dense layer (Wu et al., 2018). |
DenseFlipout | class | Bayesian dense layer with Flipout sign-flip structure. |
DenseHierarchical | class | Hierarchical Bayesian dense layer with multiplicative shrinkage. |
DenseNCP | class | Noise Contrastive Prior dense layer (Hafner et al., 2019). |
DenseReparameterization | class | Bayesian dense layer via the reparameterization trick. |
DenseVariational | class | Dense layer with a user-supplied prior factory. |
DenseVariationalDropout | class | Sparse variational dropout dense layer. |
NCPNormalOutput | class | Output-side Noise Contrastive Prior layer (Hafner et al., 2018). |
Ensemble-style layers for pyrox_nn. (pyrox_nn._ensemble)¶
| Name | Kind | What it does |
|---|---|---|
DenseRank1 | class | Rank-1 ensemble dense layer. |
LayerNormEnsemble | class | Per-ensemble-member LayerNorm. |
MultiHeadAttentionBE | class | Multi-head attention with BatchEnsemble rank-1 projections. |
Pure-JAX feature helpers and Bayesian RFF feature layers. (pyrox_nn._features)¶
| Name | Kind | What it does |
|---|---|---|
ArcCosineFourierFeatures | class | Random features for the arc-cosine kernel (Cho & Saul, 2009). |
HSGPFeatures | class | Hilbert-Space Gaussian Process feature layer (Riutort-Mayol et al., 2023). |
LaplaceCosineFeatures | class | Cosine-bias variant of random Fourier features for the Laplace kernel. |
LaplaceFourierFeatures | class | SSGP-style RFF layer with Laplace (Matern-1/2) spectral density. |
MaternCosineFeatures | class | Cosine-bias variant of random Fourier features for the Matern kernel. |
MaternFourierFeatures | class | SSGP-style RFF layer with Matern spectral density. |
RBFCosineFeatures | class | Cosine-bias variant of random Fourier features for the RBF kernel. |
RBFFourierFeatures | class | SSGP-style RFF layer with RBF spectral density. |
RandomKitchenSinks | class | Random Kitchen Sinks: RFF + a learned linear head. |
SphericalHarmonicFeatures | class | Weight-space GP on the sphere from real spherical harmonics. |
VariationalFourierFeatures | class | VSSGP — RFF with a learnable variational posterior over frequencies. |
Deterministic neural-network primitives re-exported from geonnax. (pyrox_nn._geonnax)¶
| Name | Kind | What it does |
|---|---|---|
lonlat_to_cartesian3d | function | Lift lon/lat coordinates onto the unit sphere. |
Heteroscedastic output layers (Collier et al., 2021). (pyrox_nn._heteroscedastic)¶
| Name | Kind | What it does |
|---|---|---|
GaussianRegressionHead | class | Bayesian heteroscedastic regression head (mean plus log-scale). |
MCSigmoidDenseFA | class | Heteroscedastic multi-label output layer (FA noise + sigmoid). |
MCSoftmaxDenseFA | class | Heteroscedastic multi-class output layer (FA noise + softmax). |
Post-hoc last-layer Laplace approximation with a GGN Hessian. (pyrox_nn._laplace)¶
| Name | Kind | What it does |
|---|---|---|
LastLayerLaplace | class | Gaussian posterior over a selected parameter group of a fitted model. |
last_layer_laplace | function | Fit a post-hoc GGN Laplace posterior over a parameter group. |
Bayesian Multiplicative Filter Networks. (pyrox_nn._mfn)¶
| Name | Kind | What it does |
|---|---|---|
BayesianFourierNet | class | FourierNet with Bayesian priors on all filter and linear weights. |
BayesianGaborNet | class | GaborNet with Bayesian priors on all filter and linear weights. |
Bayesian SIREN — sinusoidal network with regime-scaled Normal priors. (pyrox_nn._siren)¶
| Name | Kind | What it does |
|---|---|---|
BayesianSIREN | class | SIREN with regime-scaled Normal priors on all layer weights. |
Bayesian Slepian positional encoder. (pyrox_nn._slepian)¶
| Name | Kind | What it does |
|---|---|---|
BayesianSlepianEncoder | class | Slepian encoder with NumPyro sites for cap radius and centre. |
Spectral-Normalized Gaussian Process (SNGP) output layer. (pyrox_nn._sngp)¶
| Name | Kind | What it does |
|---|---|---|
RandomFeatureGaussianProcess | class | SNGP output layer (Liu et al., 2020). |
Deep Variational SSGP — Bayesian wrapper around the geonnax core. (pyrox_nn._vssgp)¶
| Name | Kind | What it does |
|---|---|---|
DeepVSSGP | class | Deep Random Feature Expansion for Variational SSGP (Cutajar et al. 2017). |
Re-exported from upstream¶
| Name | Kind | What it does |
|---|---|---|
AbstractConditioner | class | Re-exported from gauss_flows_maps. |
AffineModulation | class | Re-exported from gauss_flows_maps. |
BasisTransform | class | Re-exported from geonnax. |
Cartesian3DEncoder | class | Re-exported from geonnax. |
ConcatConditioner | class | Re-exported from gauss_flows_maps. |
ConditionedINR | class | Re-exported from geonnax. |
CyclicEncoder | class | Re-exported from geonnax. |
Deg2Rad | class | Re-exported from geonnax. |
FourierFilter | class | Re-exported from geonnax. |
FourierNet | class | Re-exported from geonnax. |
GaborFilter | class | Re-exported from geonnax. |
GaborNet | class | Re-exported from geonnax. |
GeoFNO | class | Re-exported from geonnax. |
HybridSphericalSlepianEncoder | class | Re-exported from geonnax. |
HyperLinear | class | Re-exported from gauss_flows_maps. |
HyperSIREN | function | Re-exported from geonnax. |
LaplaceRandomFeatureCovariance | class | Re-exported from geonnax. |
LearnedDeformation | class | Re-exported from geonnax. |
LonLatScale | class | Re-exported from geonnax. |
ManifoldNO | class | Re-exported from geonnax. |
NCPContinuousPerturb | class | Re-exported from geonnax. |
OrthogonalRandomFeatures | class | Re-exported from geonnax. |
SIREN | class | Re-exported from geonnax. |
SirenDense | class | Re-exported from geonnax. |
SlepianEncoder | class | Re-exported from geonnax. |
SphericalHarmonicEncoder | class | Re-exported from geonnax. |
cyclic_encode | function | Re-exported from geonnax. |
fourier_features | function | Re-exported from functax. |
interaction_features | function | Re-exported from geonnax. |
lonlat_scale | function | Re-exported from geonnax. |
mfn_forward | function | Re-exported from geonnax. |
seasonal_features | function | Re-exported from functax. |
seasonal_frequencies | function | Re-exported from functax. |
spherical_harmonic_encode | function | Re-exported from geonnax. |
standardize | function | Re-exported from geonnax. |
unstandardize | function | Re-exported from geonnax. |
pyrox_nn.api¶
BNFEstimator family — sklearn-style facade over the BNF stack. (pyrox_nn.api._bnf)¶
| Name | Kind | What it does |
|---|---|---|
BNFEstimator | class | MAP-fit Bayesian Neural Field estimator. |
BNFEstimatorMLE | class | BNF estimator with prior_weight=0 (MLE). |
BNFEstimatorVI | class | BNF estimator using mean-field VI via ensemble_vi. |
FittedBNF | class | Output of BNFEstimator.fit. |
Minimal sklearn-style immutable Estimator facade. (pyrox_nn.api._estimator)¶
| Name | Kind | What it does |
|---|---|---|
EstimatorBase | class | Immutable configuration for a probabilistic regression model. |
FittedEstimator | class | Output of EstimatorBase.fit. |
NeuralFieldEstimator — fit any Bayesian neural field with ensembles. (pyrox_nn.api._field)¶
| Name | Kind | What it does |
|---|---|---|
FittedNeuralField | class | Output of NeuralFieldEstimator.fit. |
NeuralFieldEstimator | class | Fit any Bayesian neural field with ensemble MAP or VI. |
pyrox_nn.preprocessing¶
| Name | Kind | What it does |
|---|---|---|
SpatiotemporalFit | class | Immutable bundle of fitted feature layers + time-encoding scalars. |
encode_time_column | function | Convert a pandas time column into a unit-scale JAX float array. |
fit_spatiotemporal | function | Build a complete SpatiotemporalFit from a DataFrame. |
fit_standardization | function | Build 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)¶
| Name | Kind | What it does |
|---|---|---|
BYM2 | class | BYM2 (Riebler et al., 2016), a mixture of unstructured and ICAR effects. |
Besag | class | Intrinsic CAR (ICAR / Besag): precision , . |
CAR | class | Proper CAR: precision , . |
Leroux | class | Leroux CAR: precision , . |
Base class for latent components (P7). (pyrox_lgm._components._base)¶
| Name | Kind | What it does |
|---|---|---|
AbstractComponent | class | A latent field with hyperpriors and a projector to observations. |
Combinators: separable Kronecker products and replicates of components (P7). (pyrox_lgm._components._combinators)¶
| Name | Kind | What it does |
|---|---|---|
Kronecker | class | Separable product (R-INLA group). |
Replicate | class | n_rep independent copies of a component, sharing its hyperparameters. |
Generic components from a user-supplied structure (P7). (pyrox_lgm._components._generic)¶
| Name | Kind | What it does |
|---|---|---|
Generic | class | A field with precision for a user-supplied structure . |
Markov GP component: a gaussx SDE kernel on sorted times as a GMRF (P7). (pyrox_lgm._components._markov)¶
| Name | Kind | What it does |
|---|---|---|
MarkovGP | class | A 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)¶
| Name | Kind | What it does |
|---|---|---|
SPDE | class | Maté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)¶
| Name | Kind | What it does |
|---|---|---|
AR1 | class | Stationary AR(1), . |
IID | class | Independent effects , . |
RW1 | class | First-order random walk, . |
RW2 | class | Second-order random walk, . |
An LGM conditioned at fixed hyperparameters. (pyrox_lgm._condition)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedLGM | class | An LGMPrior conditioned on Gaussian observations, at fixed . |
ConditionedNonGaussLGM | class | An LGMPrior conditioned under any likelihood, at fixed . |
Model diagnostics without refits: DIC, WAIC, CPO and PIT (P9). (pyrox_lgm._diagnostics)¶
| Name | Kind | What it does |
|---|---|---|
Diagnostics | class | Leave-one-out and information criteria of an INLAResult. |
diagnostics | function | DIC, 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)¶
| Name | Kind | What it does |
|---|---|---|
f | function | Build a latent component named after the data column it indexes. |
The inla() driver (P8). (pyrox_lgm._inla)¶
| Name | Kind | What it does |
|---|---|---|
inla | function | Integrated nested Laplace approximation of a latent Gaussian model. |
Observation models of an LGM (P8). (pyrox_lgm._likelihood)¶
| Name | Kind | What it does |
|---|---|---|
Bernoulli | class | y ~ Bernoulli(sigmoid(eta)), y in {0, 1}. |
Binomial | class | y ~ Binomial(n, sigmoid(eta)) with n = data["n_trials"]. |
Gaussian | class | y ~ N(eta, 1/prec); prec under PCPrecision(1, 0.01). |
NegativeBinomial | class | y ~ NegBin(mean exp(eta), size); size under Gamma(1, 0.1). |
Poisson | class | y ~ Poisson(exp(eta)); put the log exposure in data["offset"]. |
The latent Gaussian model, LGM, and its prior, LGMPrior (P8). (pyrox_lgm._model)¶
| Name | Kind | What it does |
|---|---|---|
FixedEffects | class | Fixed effects , columns of . |
LGM | class | A latent Gaussian model: components, fixed effects and an observation model. |
LGMPrior | class | The latent field of an LGM: its components and fixed effects. |
NumPyro faces of an LGM: sampled components and collapsed factors. (pyrox_lgm._numpyro)¶
| Name | Kind | What it does |
|---|---|---|
lgm_factor | function | Register an LGM’s exact log marginal under Gaussian noise with NumPyro. |
lgm_laplace_factor | function | Register an LGM’s Laplace log marginal with NumPyro, for any likelihood. |
Penalised-complexity (PC) priors (Simpson et al., 2017). (pyrox_lgm._priors._pc)¶
| Name | Kind | What it does |
|---|---|---|
PCAR1Rho | class | PC prior on the lag-one correlation of an AR(1) process. |
PCBYM2Phi | class | PC prior on the BYM2 mixing parameter . |
PCMatern | class | Joint PC prior on the range and marginal sd of a Matérn field. |
PCPrecision | class | PC prior on the precision of a Gaussian effect. |
StructureSpectrum | class | Spectral measure of , the generalised inverse of a structure. |
structure_spectrum | function | The spectrum of that PCBYM2Phi needs, computed once. |
INLAResult: posterior marginals and the marginal likelihood (P8). (pyrox_lgm._result)¶
| Name | Kind | What it does |
|---|---|---|
INLAResult | class | What inla() returns. |
Summary | class | Posterior 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)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedSharedPlusSiteMarkovGP | class | A SharedPlusSiteMarkovGPPrior conditioned on its observations. |
SharedPlusSiteMarkovGPPrior | class | A shared GP plus one independent GP per site, on a merged time grid. |
shared_plus_site_factor | function | Register the log marginal of a shared GP plus one GP per site. |
Site-based non-Gaussian inference for MarkovGPPrior. (pyrox_ssm._inference_nongauss_markov)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedNonGaussMarkovGP | class | Markov GP conditioned on a non-Gaussian likelihood via a site-based strategy. |
ExpectationPropagationMarkov | class | Parallel Expectation Propagation for MarkovGPPrior. |
GaussNewtonMarkovInference | class | Gauss-Newton (Markov) inference: Newton with a strict PSD floor. |
LaplaceMarkovInference | class | Laplace approximation for MarkovGPPrior. |
PosteriorLinearizationMarkov | class | Posterior linearization for MarkovGPPrior (Markov IPLF). |
markov_implicit_adjoint | function | The implicit adjoint of the Markov strategies, safe to use inside NUTS. |
markov_laplace_factor | function | Register a non-Gaussian Markov GP’s approximate evidence with NumPyro. |
Linear-Gaussian state-space prior given directly by its matrices. (pyrox_ssm._lgssm)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedLinearGaussianSSM | class | A LinearGaussianSSMPrior conditioned on observations. |
LinearGaussianSSMPrior | class | Prior over a linear-Gaussian state-space model given by its matrices. |
lgssm_factor | function | Register 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)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedMarkovGP | class | Markov GP conditioned on Gaussian-likelihood observations. |
MarkovGPPrior | class | Linear-time temporal GP prior over a sorted 1-D grid. |
markov_gp_factor | function | Register the collapsed Markov-GP marginal log-likelihood with NumPyro. |
markov_gp_from_innovations | function | Latent path of a Markov GP from whitened innovations, in linear time. |
markov_gp_innovations_sample | function | Sample a Markov-GP latent path through whitened innovations. |
markov_gp_sample | function | Sample 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)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedNonlinearGaussianSSM | class | A NonlinearGaussianSSMPrior conditioned on observations. |
NonlinearGaussianSSMPrior | class | Prior over a nonlinear state-space model, filtered by moment matching. |
nonlinear_ssm_factor | function | Register 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)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedMarkovGPSites | class | A MarkovGPSitesPrior conditioned on every site’s observations. |
MarkovGPSitesPrior | class | A Markov GP prior over padded sites that share one SDE kernel. |
markov_gp_sites_factor | function | Register the summed Markov-GP log marginal of S sites as one factor. |
noncentred_log_normal | function | A positive per-site parameter around a population value, non-centred. |
pad_sites | function | Pad 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)¶
| Name | Kind | What it does |
|---|---|---|
ConditionedSparseMarkovGP | class | Sparse Markov GP fitted to a guide. |
SparseMarkovGPPrior | class | Sparse variational GP prior over an SDE kernel and inducing time grid. |
sparse_markov_elbo | function | Sparse variational ELBO for SparseMarkovGPPrior. |
sparse_markov_factor | function | Register sparse_markov_elbo as a NumPyro factor site. |
Re-exported from upstream¶
| Name | Kind | What it does |
|---|---|---|
ConstantSDE | class | Re-exported from gaussx. |
CosineSDE | class | Re-exported from gaussx. |
IntegratedWienerSDE | class | Re-exported from gaussx. |
MaternSDE | class | Re-exported from gaussx. |
PeriodicSDE | class | Re-exported from gaussx. |
ProductSDE | class | Re-exported from gaussx. |
QuasiPeriodicSDE | class | Re-exported from gaussx. |
SDEKernel | class | Re-exported from gaussx. |
SDEParams | class | Re-exported from gaussx. |
SumSDE | class | Re-exported from gaussx. |
pyrox_ssm.flows¶
| Name | Kind | What it does |
|---|---|---|
ConditionedNormalizingKalman | class | A NormalizingKalmanPrior conditioned on observations. |
NormalizingKalmanPrior | class | Normalizing Kalman Filter prior over a multivariate time grid. |
normalizing_kalman_factor | function | Register the NKF marginal log-likelihood with NumPyro. |
pyrox_ssm.ensemble¶
| Name | Kind | What it does |
|---|---|---|
ensemble_factor | function | Register 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)¶
| Name | Kind | What it does |
|---|---|---|
FrechetType2GEVD | class | Fréchet Type II Generalized Extreme Value Distribution for NumPyro. |
Comprehensive Generalized Extreme Value Distribution (GEVD) for NumPyro (pyrox_xtreme.distributions.gevd)¶
| Name | Kind | What it does |
|---|---|---|
GeneralizedExtremeValueDistribution | class | Generalized Extreme Value Distribution (GEVD) for NumPyro. |
Generalized Pareto Distribution (GPD) for NumPyro (pyrox_xtreme.distributions.gpd)¶
| Name | Kind | What it does |
|---|---|---|
GeneralizedParetoDistribution | class | Generalized Pareto Distribution (GPD) for NumPyro. |
Gumbel Type I Generalized Extreme Value Distribution for NumPyro (pyrox_xtreme.distributions.gumbel)¶
| Name | Kind | What it does |
|---|---|---|
GumbelType1GEVD | class | Gumbel Type I Generalized Extreme Value Distribution for NumPyro. |
Weibull Type III Generalized Extreme Value Distribution for NumPyro (pyrox_xtreme.distributions.weibull)¶
| Name | Kind | What it does |
|---|---|---|
WeibullType3GEVD | class | Weibull 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)¶
| Name | Kind | What it does |
|---|---|---|
frechet_cdf | function | Fréchet CDF. |
frechet_icdf | function | Fréchet quantile function. |
frechet_log_prob | function | Fréchet log PDF (assumes shape > 0). |
frechet_mean | function | Fréchet mean (+inf when shape >= 1). |
frechet_return_level | function | T-period return level. |
Pure-JAX primitives for the Generalized Extreme Value distribution. (pyrox_xtreme.primitives.gev)¶
| Name | Kind | What it does |
|---|---|---|
gev_cdf | function | CDF of the Generalized Extreme Value distribution. |
gev_icdf | function | Quantile function (inverse CDF) of the GEV distribution. |
gev_log_prob | function | Log PDF of the Generalized Extreme Value distribution. |
gev_log_survival | function | Log survival function :math:\log S(x) = \log(1 - F(x)) of the GEV. |
gev_mean | function | Mean of the GEV distribution (+inf when :math:\xi \ge 1). |
gev_return_level | function | T-period return level: :math:z_T = F^{-1}(1 - 1/T). |
gev_survival | function | Survival function :math:S(x) = 1 - F(x) of the GEV distribution. |
Pure-JAX primitives for the Generalized Pareto Distribution. (pyrox_xtreme.primitives.gpd)¶
| Name | Kind | What it does |
|---|---|---|
gpd_cdf | function | CDF of the Generalized Pareto Distribution. |
gpd_icdf | function | Quantile function (inverse CDF) of the GPD. |
gpd_log_prob | function | Log PDF of the Generalized Pareto Distribution (loc = 0). |
gpd_log_survival | function | Log survival :math:\log S(x) = -\tfrac{1}{\xi}\log(1 + \xi x/\sigma). |
gpd_mean | function | GPD mean: :math:\sigma / (1 - \xi) for :math:\xi < 1, else +inf. |
gpd_return_level | function | T-period return level: :math:Q(1 - 1/T). |
gpd_survival | function | Survival 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)¶
| Name | Kind | What it does |
|---|---|---|
gumbel_cdf | function | Gumbel CDF: :math:F(x) = \exp(-\exp(-z)). |
gumbel_icdf | function | Gumbel quantile: :math:Q(p) = \mu - \sigma\log(-\log p). |
gumbel_log_prob | function | Gumbel log PDF: :math:-\log\sigma - z - e^{-z}, :math:z=(x-\mu)/\sigma. |
gumbel_mean | function | Gumbel mean: :math:\mu + \sigma\gamma_E. |
gumbel_return_level | function | T-period return level: :math:Q(1 - 1/T). |
Pure-JAX primitives for non-stationary GEV return levels. (pyrox_xtreme.primitives.nonstationary)¶
| Name | Kind | What it does |
|---|---|---|
assemble_nonstationary_gev_fields | function | Build non-stationary spatio-temporal GEV parameter fields. |
expected_exceedances | function | Expected number of block exceedances of a threshold. |
nonstationary_return_level | function | Return level for stationary or non-stationary GEV parameter fields. |
nonstationary_return_period | function | Return period associated with a threshold under (non-)stationary GEV. |
Pure-JAX spatial building blocks for hierarchical extreme value models. (pyrox_xtreme.primitives.spatial)¶
| Name | Kind | What it does |
|---|---|---|
design_matrix | function | Prepend an intercept column to a static-covariate matrix. |
pairwise_distances | function | Euclidean distance matrix between sites. |
two_range_correlation | function | Two-range exponential correlation matrix with unit diagonal. |
Pure-JAX primitives for the reverse Weibull (Type III) extreme value distribution. (pyrox_xtreme.primitives.weibull)¶
| Name | Kind | What it does |
|---|---|---|
weibull_cdf | function | Reverse-Weibull CDF. |
weibull_icdf | function | Reverse-Weibull quantile function. |
weibull_log_prob | function | Reverse-Weibull log PDF (assumes shape < 0). |
weibull_mean | function | Reverse-Weibull mean (always finite for shape < 0). |
weibull_return_level | function | T-period return level. |
pyrox_xtreme.extraction¶
(pyrox_xtreme.extraction.block_maxima)¶
| Name | Kind | What it does |
|---|---|---|
declustered_block_maxima | function | Extract declustered block maxima by identifying independent extreme events. |
r_largest_block_maxima | function | Extract r-largest order statistics from each block. |
sliding_block_maxima | function | Extract block maxima using a sliding window approach. |
spatial_block_maxima | function | Extract spatial block maximum values from an xarray DataArray. |
temporal_block_maxima | function | Extract temporal block maximum values from an xarray DataArray. |
temporal_block_minima | function | Extract temporal block minimum values from an xarray DataArray. |
(pyrox_xtreme.extraction.decluster)¶
| Name | Kind | What it does |
|---|---|---|
decluster_runs | function | Decluster exceedances using the runs method. |
decluster_separation | function | Decluster by enforcing minimum separation between peaks. |
estimate_extremal_index | function | Estimate the extremal index (theta), a measure of clustering. |
Threshold exceedances per time block: their counts, rate and values. (pyrox_xtreme.extraction.exceedances)¶
| Name | Kind | What it does |
|---|---|---|
exceedance_counts | function | Count the values above a threshold within each temporal block. |
exceedance_rate | function | The fraction of observed values above a threshold within each temporal block. |
exceedance_statistic | function | Summarise the values above a threshold within each temporal block. |
Quantile regression utilities for extremes thresholding. (pyrox_xtreme.extraction.quantile_regression)¶
| Name | Kind | What it does |
|---|---|---|
XarrayQuantileRegressor | class | Quantile regressor that operates on :class:xr.DataArray inputs. |
quantile_regression_threshold | function | Estimate a time-varying threshold via linear quantile regression. |
Threshold selection for peaks-over-threshold (POT) analysis. (pyrox_xtreme.extraction.threshold)¶
| Name | Kind | What it does |
|---|---|---|
constant_threshold | function | Return a constant threshold value. |
quantile_threshold | function | Calculate threshold based on a percentile of the data. |
rolling_threshold | function | Calculate time-varying threshold using a rolling window. |
seasonal_threshold | function | Calculate seasonal threshold (backward compatibility wrapper). |
temporal_threshold | function | Calculate 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)¶
| Name | Kind | What it does |
|---|---|---|
constant_mark_distribution | function | Mark distribution that ignores time and history and returns d. |
constant_retention | function | Retention that always returns the same probability p. |
time_varying_marks | function | Wrap a time → Distribution callable into the full signature. |
time_varying_retention | function | Wrap 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)¶
| Name | Kind | What it does |
|---|---|---|
RectangularDomain | class | Axis-aligned rectangle [lo, hi] ⊂ ℝᵈ. |
TemporalDomain | class | Half-open temporal interval [t0, t1) ⊂ ℝ. |
Padded event-history PyTree shared by all TPP families. (pyrox_xtreme.point_processes._history)¶
| Name | Kind | What it does |
|---|---|---|
EventHistory | class | Fixed-size buffer of events + optional marks. |
Numerical integration utilities for temporal point processes. (pyrox_xtreme.point_processes._integration)¶
| Name | Kind | What it does |
|---|---|---|
cumulative_log_intensity | function | Shorthand for :math:\Lambda(t) = \int_0^t \lambda(s) ds. |
integrate_log_intensity | function | Compute :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)¶
| Name | Kind | What it does |
|---|---|---|
integrate_log_intensity_spatial | function | Compute :math:\int_D \exp(\log\lambda(s))\, ds. |
Quadrature over a space-time slab D × [t0, t1). (pyrox_xtreme.point_processes._integration_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
integrate_log_intensity_spatiotemporal | function | Compute :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)¶
| Name | Kind | What it does |
|---|---|---|
GoodnessOfFit | class | Bundle of diagnostics returned by goodness_of_fit. |
MarkedSampleResult | class | Marked temporal sample: (times, mask, marks). |
MarkedSpatialSampleResult | class | Marked spatial sample: (locations, mask, marks). |
MarkedSpatiotemporalSampleResult | class | Marked spatiotemporal sample: (locations, times, mask, marks). |
SampleResult | class | Unmarked temporal sample: (times, mask, n_events). |
SpatialSampleResult | class | Unmarked spatial sample: (locations, mask, n_events). |
SpatiotemporalSampleResult | class | Unmarked 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)¶
| Name | Kind | What it does |
|---|---|---|
compensator_curve | function | Pairs (t_i, Λ(t_i)) for a compensator plot. |
ks_statistic_exp1 | function | Two-sided Kolmogorov–Smirnov statistic against Exp(1). |
qq_exp1_quantiles | function | Theoretical vs empirical quantiles against Exp(1) for a QQ plot. |
time_rescaling_residuals | function | Rescaled inter-event times under the compensator. |
Analytical second-order summaries for spatial point processes. (pyrox_xtreme.point_processes.primitives.diagnostics_spatial)¶
| Name | Kind | What it does |
|---|---|---|
csr_l_function | function | Besag’s L-function, the variance-stabilised K. |
csr_pair_correlation | function | Pair correlation function under CSR: g(r) ≡ 1. |
csr_ripleys_k | function | Theoretical Ripley’s K-function under CSR, :math:K(r) = V_d r^d. |
unit_ball_volume | function | Volume 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)¶
| Name | Kind | What it does |
|---|---|---|
exp_hawkes_cumulative_intensity | function | Exponential-kernel Hawkes compensator. |
exp_hawkes_intensity | function | Conditional intensity of the exponential-kernel Hawkes process. |
exp_hawkes_lambda_max | function | Upper bound :math:\mu + \alpha \cdot N(t) valid from the last event onward. |
exp_hawkes_log_prob | function | Log-likelihood :math:\sum_i \log \lambda^*(t_i) - \Lambda(T) for exp Hawkes. |
exp_hawkes_sample | function | Ogata thinning sample of an exponential-kernel Hawkes process. |
general_hawkes_cumulative_intensity | function | Compensator :math:\mu T + \sum_i \int_{t_i}^{T} \phi(s - t_i) ds. |
general_hawkes_intensity | function | Conditional intensity for a general kernel. |
general_hawkes_log_prob | function | Log-likelihood for a general-kernel Hawkes process. |
general_hawkes_sample | function | Ogata thinning for a general-kernel Hawkes process. |
Self-exciting spatiotemporal point process (ETAS-style Hawkes). (pyrox_xtreme.point_processes.primitives.hawkes_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
stpp_hawkes_compensator | function | Closed-form compensator :math:\Lambda of the ETAS Hawkes process. |
stpp_hawkes_intensity | function | Conditional intensity :math:\lambda^*(s, t) of the ETAS Hawkes process. |
stpp_hawkes_lambda_max | function | Adaptive upper bound :math:\bar\lambda = \mu + N \alpha \beta k_s(0). |
stpp_hawkes_log_prob | function | Log-likelihood :math:\sum_i \log \lambda^*(s_i, t_i) - \Lambda. |
stpp_hawkes_sample | function | Ogata-style spatiotemporal thinning sample. |
Pure-JAX primitives for the Homogeneous Poisson Process on [0, T]. (pyrox_xtreme.point_processes.primitives.hpp)¶
| Name | Kind | What it does |
|---|---|---|
hpp_cumulative_intensity | function | Compensator :math:\Lambda(t) = \lambda t. |
hpp_exceedance_log_prob | function | log P(N > k) over [start, end], computed via the Poisson CDF. |
hpp_hazard | function | Constant hazard equal to rate. |
hpp_intensity | function | Constant intensity :math:\lambda(t) = \lambda. |
hpp_inter_event_log_prob | function | Log density of τ ~ Exp(λ): :math:\log \lambda - \lambda \tau. |
hpp_log_prob | function | Log-likelihood :math:\log L = n \log \lambda - \lambda T. |
hpp_mean_residual_life | function | Memorylessness gives :math:\mathbb{E}[T - s \mid T > s] = 1/\lambda. |
hpp_predict_count | function | Expected event count on [start, end]: λ (end - start). |
hpp_return_period | function | Time τ such that :math:P(\text{no event in } \tau) = 1 - p. |
hpp_sample | function | Sample ordered event times from a homogeneous Poisson process. |
hpp_survival | function | :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)¶
| Name | Kind | What it does |
|---|---|---|
hpp_spatial_count_log_prob | function | Marginal Poisson-count log-pmf log P(N = n). |
hpp_spatial_intensity | function | Constant intensity λ(s) = λ, broadcast against locations. |
hpp_spatial_log_prob | function | Joint Janossy log-likelihood of a homogeneous Poisson pattern. |
hpp_spatial_nearest_neighbor_distance | function | Expected nearest-neighbour distance for a CSR pattern in ℝᵈ. |
hpp_spatial_predict_count | function | Mean and variance of the count in a sub-domain (both λ |A|). |
hpp_spatial_sample | function | Sample a CSR realisation on a rectangular domain. |
Pure-JAX primitives for the homogeneous spatiotemporal Poisson process. (pyrox_xtreme.point_processes.primitives.hpp_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
hpp_spatiotemporal_count_log_prob | function | Marginal Poisson-count log-pmf log P(N = n) with mean λ |D| T. |
hpp_spatiotemporal_intensity | function | Constant intensity λ(s, t) = λ, broadcast against times. |
hpp_spatiotemporal_log_prob | function | Janossy log-likelihood n log λ − λ |D| (t1 − t0). |
hpp_spatiotemporal_predict_count | function | Mean and variance of the count in a sub-slab (both λ |A| τ). |
hpp_spatiotemporal_sample | function | Sample a homogeneous spatiotemporal Poisson realisation. |
Pure-JAX primitives for the Inhomogeneous Poisson Process on [0, T]. (pyrox_xtreme.point_processes.primitives.ipp)¶
| Name | Kind | What it does |
|---|---|---|
ipp_cumulative_hazard | function | :math:\Lambda(t) - \Lambda(s) via quadrature. |
ipp_cumulative_intensity | function | Compensator :math:\Lambda(t) via composite trapezoid. |
ipp_hazard | function | Hazard equals the intensity for an IPP. |
ipp_intensity | function | Pointwise intensity λ(t) = exp(log_intensity_fn(t)). |
ipp_inter_event_log_prob | function | Log density of the next-event delay τ given last event at s. |
ipp_log_prob | function | Log-likelihood of an observed IPP event sequence. |
ipp_predict_count | function | Expected count :math:\Lambda(end) - \Lambda(start) on [start, end]. |
ipp_sample_inversion | function | Exact inversion sampling when :math:\Lambda^{-1} is available. |
ipp_sample_thinning | function | Sample via Lewis–Shedler thinning with a static buffer. |
ipp_survival | function | :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)¶
| Name | Kind | What it does |
|---|---|---|
ipp_spatial_intensity | function | Pointwise intensity λ(s) = exp(log_intensity_fn(s)). |
ipp_spatial_log_prob | function | Log-likelihood of an observed inhomogeneous spatial pattern. |
ipp_spatial_predict_count | function | Expected count over a sub-domain A. |
ipp_spatial_sample_thinning | function | Lewis–Shedler thinning sampler with a static buffer. |
Pure-JAX primitives for the inhomogeneous spatiotemporal Poisson process. (pyrox_xtreme.point_processes.primitives.ipp_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
ipp_spatiotemporal_chi_square_gof | function | Pearson :math:\chi^2 statistic from binned residuals. |
ipp_spatiotemporal_intensity | function | Evaluate λ(s, t) = exp(log λ(s, t)) on a batch of events. |
ipp_spatiotemporal_intensity_surface_at_time | function | Evaluate λ(s, t) on a tensor-product spatial grid at fixed t. |
ipp_spatiotemporal_log_prob | function | Janossy log-likelihood :math:\sum_i \log \lambda(s_i, t_i) - \Lambda. |
ipp_spatiotemporal_marginal_spatial_intensity | function | Compute :math:\lambda_S(s) = \int_{t_0}^{t_1} \lambda(s, t)\, dt. |
ipp_spatiotemporal_marginal_temporal_intensity | function | Compute :math:\lambda_T(t) = \int_D \lambda(s, t)\, ds. |
ipp_spatiotemporal_pearson_residuals | function | Pearson residuals on a tensor-product space-time grid. |
ipp_spatiotemporal_predict_count | function | Mean and variance of the Poisson count over the integration domain. |
ipp_spatiotemporal_sample_thinning | function | Lewis–Shedler thinning on D × [t_0, t_1). |
Primitives for marked temporal point processes. (pyrox_xtreme.point_processes.primitives.marked)¶
| Name | Kind | What it does |
|---|---|---|
marks_log_prob | function | Sum of log f(mᵢ | tᵢ, Hᵢ) over real events. |
sample_marks_at_times | function | Draw marks mᵢ ~ f(· | tᵢ, Hᵢ) at each observed time. |
Primitives for marked spatial point processes. (pyrox_xtreme.point_processes.primitives.marked_spatial)¶
| Name | Kind | What it does |
|---|---|---|
sample_spatial_marks_at_locations | function | Draw marks mᵢ ~ f(· | sᵢ) at every location. |
spatial_marks_log_prob | function | Sum of log f(mᵢ | sᵢ) over real events. |
Primitives for marked spatiotemporal point processes. (pyrox_xtreme.point_processes.primitives.marked_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
sample_spatiotemporal_marks | function | Draw marks :math:m_i \sim f(\cdot \mid s_i, t_i) at every event. |
spatiotemporal_marks_log_prob | function | Sum 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)¶
| Name | Kind | What it does |
|---|---|---|
renewal_cumulative_hazard | function | :math:\Lambda(\tau) = -\log S(\tau) = -\log(1 - F(\tau)). |
renewal_expected_count | function | Expected number of events on [0, T] via the renewal equation. |
renewal_hazard | function | Hazard of the inter-event distribution: :math:h(\tau) = f(\tau)/S(\tau). |
renewal_intensity | function | Conditional intensity :math:\lambda^*(t) = h(t - t_{N(t)}). |
renewal_inter_event_log_prob | function | Log density of an inter-event gap: log f(τ). |
renewal_log_prob | function | Log-likelihood of an observed renewal-process sequence. |
renewal_ogata_intensity_fn | function | Build a (t, history) -> λ*(t) closure usable by thinning samplers. |
renewal_sample | function | Sample a renewal-process event sequence by accumulating gaps. |
renewal_survival | function | S(τ) = 1 − F(τ) clipped to be non-negative. |
Generic Ogata thinning sampler and retention primitives. (pyrox_xtreme.point_processes.primitives.thinning)¶
| Name | Kind | What it does |
|---|---|---|
retention_compensator | function | Compute the retention compensator via trapezoid quadrature. |
thinning_retention_log_prob | function | Sum of log p(tᵢ | Hᵢ, mᵢ) over retained events. |
thinning_sample | function | Sample 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)¶
| Name | Kind | What it does |
|---|---|---|
ExponentialHawkes | class | Hawkes process with exponential excitation on [0, T]. |
ExponentialKernel | class | Exponential excitation kernel :math:\phi(\tau) = \alpha e^{-\beta \tau}. |
GeneralHawkesProcess | class | Hawkes process with a user-supplied kernel module. |
Equinox operator for the spatiotemporal Hawkes process. (pyrox_xtreme.point_processes.operators.hawkes_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
SpatioTemporalHawkes | class | ETAS-style separable exp-Gaussian Hawkes process. |
Equinox operator for the homogeneous spatial Poisson process. (pyrox_xtreme.point_processes.operators.hpp_spatial)¶
| Name | Kind | What it does |
|---|---|---|
HomogeneousSpatialPP | class | Homogeneous spatial Poisson process on a rectangular domain. |
Equinox operator for the homogeneous spatiotemporal Poisson process. (pyrox_xtreme.point_processes.operators.hpp_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
HomogeneousSpatioTemporalPP | class | Homogeneous Poisson process on D × [t0, t1). |
Equinox operator for the inhomogeneous spatial Poisson process. (pyrox_xtreme.point_processes.operators.ipp_spatial)¶
| Name | Kind | What it does |
|---|---|---|
InhomogeneousSpatialPP | class | Inhomogeneous spatial Poisson process on a rectangular domain. |
Equinox operator for the inhomogeneous spatiotemporal Poisson process. (pyrox_xtreme.point_processes.operators.ipp_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
InhomogeneousSpatioTemporalPP | class | Inhomogeneous Poisson process on D × [t0, t1). |
Equinox operator for separable marked temporal point processes. (pyrox_xtreme.point_processes.operators.marked)¶
| Name | Kind | What it does |
|---|---|---|
MarkedTemporalPointProcess | class | Separable marked TPP: ground process + time-/history-conditioned marks. |
Equinox operator for separable marked spatial point processes. (pyrox_xtreme.point_processes.operators.marked_spatial)¶
| Name | Kind | What it does |
|---|---|---|
MarkedSpatialPP | class | Separable marked spatial PP: ground process × mark distribution. |
Equinox operator for separable marked spatiotemporal PPs. (pyrox_xtreme.point_processes.operators.marked_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
MarkedSpatioTemporalPP | class | Separable marked spatiotemporal PP: ground × mark distribution. |
Equinox operator for 1-D renewal temporal point processes. (pyrox_xtreme.point_processes.operators.renewal)¶
| Name | Kind | What it does |
|---|---|---|
RenewalProcess | class | Renewal process on [0, T] with a user-supplied inter-event law. |
Equinox-based temporal point process operators. (pyrox_xtreme.point_processes.operators.temporal)¶
| Name | Kind | What it does |
|---|---|---|
HomogeneousPoissonProcess | class | Homogeneous Poisson process on [0, T]. |
InhomogeneousPoissonProcess | class | Inhomogeneous Poisson process on [0, T]. |
PiecewiseConstantLogIntensity | class | Piecewise-constant log-intensity as an eqx.Module. |
Equinox operator that thins a base temporal point process. (pyrox_xtreme.point_processes.operators.thinning)¶
| Name | Kind | What it does |
|---|---|---|
ThinningProcess | class | Thinned 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)¶
| Name | Kind | What it does |
|---|---|---|
ExponentialHawkes | class | NumPyro wrapper for an exponential-kernel Hawkes process. |
GeneralHawkesProcess | class | NumPyro wrapper for a general-kernel Hawkes process. |
NumPyro Distribution wrapper for the spatiotemporal Hawkes process. (pyrox_xtreme.point_processes.distributions.hawkes_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
SpatioTemporalHawkes | class | NumPyro wrapper for a separable exp-Gaussian spatiotemporal Hawkes process. |
NumPyro Distribution wrapper for the homogeneous spatial PP. (pyrox_xtreme.point_processes.distributions.hpp_spatial)¶
| Name | Kind | What it does |
|---|---|---|
HomogeneousSpatialPP | class | NumPyro wrapper for a homogeneous spatial Poisson process. |
NumPyro Distribution wrapper for the homogeneous spatiotemporal PP. (pyrox_xtreme.point_processes.distributions.hpp_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
HomogeneousSpatioTemporalPP | class | NumPyro wrapper for a homogeneous spatiotemporal Poisson process. |
NumPyro Distribution wrapper for the inhomogeneous spatial PP. (pyrox_xtreme.point_processes.distributions.ipp_spatial)¶
| Name | Kind | What it does |
|---|---|---|
InhomogeneousSpatialPP | class | NumPyro wrapper for an inhomogeneous spatial Poisson process. |
NumPyro Distribution wrapper for the inhomogeneous spatiotemporal PP. (pyrox_xtreme.point_processes.distributions.ipp_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
InhomogeneousSpatioTemporalPP | class | NumPyro wrapper for an inhomogeneous spatiotemporal Poisson process. |
NumPyro Distribution wrapper for a separable marked TPP. (pyrox_xtreme.point_processes.distributions.marked)¶
| Name | Kind | What it does |
|---|---|---|
MarkedTemporalPointProcess | class | NumPyro wrapper for a separable marked temporal point process. |
NumPyro Distribution wrapper for the marked spatial PP. (pyrox_xtreme.point_processes.distributions.marked_spatial)¶
| Name | Kind | What it does |
|---|---|---|
MarkedSpatialPP | class | NumPyro wrapper for a separable marked spatial Poisson process. |
NumPyro Distribution wrapper for the marked spatiotemporal PP. (pyrox_xtreme.point_processes.distributions.marked_spatiotemporal)¶
| Name | Kind | What it does |
|---|---|---|
MarkedSpatioTemporalPP | class | NumPyro wrapper for a separable marked spatiotemporal Poisson process. |
NumPyro Distribution wrapper for a renewal temporal point process. (pyrox_xtreme.point_processes.distributions.renewal)¶
| Name | Kind | What it does |
|---|---|---|
RenewalProcess | class | NumPyro wrapper for a renewal temporal point process. |
NumPyro Distribution wrappers around the temporal PP operators. (pyrox_xtreme.point_processes.distributions.temporal)¶
| Name | Kind | What it does |
|---|---|---|
HomogeneousPoissonProcess | class | NumPyro wrapper for a homogeneous temporal Poisson process. |
InhomogeneousPoissonProcess | class | NumPyro wrapper for an inhomogeneous temporal Poisson process. |
NumPyro Distribution wrapper for a thinned temporal point process. (pyrox_xtreme.point_processes.distributions.thinning)¶
| Name | Kind | What it does |
|---|---|---|
ThinningProcess | class | NumPyro wrapper for a thinned TPP. |
pyrox_xtreme.simulations¶
Variable-specific extreme value generators. (pyrox_xtreme.simulations.extremes)¶
| Name | Kind | What it does |
|---|---|---|
compute_climate_signal | function | Combines Spatial and Temporal fields to create a mean climate signal (Mu). |
generate_spatial_field | function | Generates static spatial data: Lat, Lon, Elevation, Distance to Coast. |
simulate_precip_extremes | function | Simulates Precipitation Extremes: 1. |
simulate_temp_extremes | function | Simulates Block Maxima Temperature via the GEV distribution. |
simulate_wind_extremes | function | Simulates Extreme Wind Speeds (Gusts) using Weibull distribution. |
Synthetic spatial-domain generators. (pyrox_xtreme.simulations.spatial)¶
| Name | Kind | What it does |
|---|---|---|
SpatialFeatureExtractor | class | Static methods to derive physical features from a Digital Elevation Model (DEM). |
augment_spatial_features | function | Pipeline to run all extractors and merge into Dataset. |
compute_advanced_climate_signal | function | Generates Tmax and Precip Mean fields using advanced physics proxies. |
create_iberian_domain | function | Creates the master spatial dataset with Lat, Lon, Elevation, and Land Mask. |
generate_fractal_terrain | function | Generates coherent terrain using Fractal Brownian Motion (fBm). |
generate_iberia_mask | function | Procedurally generates a boolean mask approximating the Iberian Peninsula and Balearic Islands using geometrical primitives. |
Temporal GMST trajectory generators. (pyrox_xtreme.simulations.temporal)¶
| Name | Kind | What it does |
|---|---|---|
generate_gmst_trajectory | function | Generates a synthetic Global Mean Surface Temperature (GMST) anomaly curve. |
generate_physical_gmst | function | Simulates 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¶
| Name | Kind | What it does |
|---|---|---|
AbstractIntegrator | class | Protocol for Gaussian integral approximation. |
AbstractLikelihood | class | Base class for likelihood functions with optional analytical ELL. |
AbstractLogdetStrategy | class | Protocol for a log-determinant strategy. |
AbstractPreconditioner | class | Protocol for preconditioners that produce an approximate inverse. |
AbstractSketch | class | A random sketching matrix S ∈ ℝ^(d × M), sampled once. |
AbstractSmoother | class | A smoother u ← S(u, b) for A u = b on one level. |
AbstractSolveStrategy | class | Protocol for a linear-solve strategy. |
AbstractSolverStrategy | class | Protocol for a solver strategy that pairs a solve and a log-determinant. |
AnalyticalPsiStatistics | class | Protocol for kernels with closed-form Ψ statistics. |
AssumedDensityFilter | class | KL-optimal Gaussian projection of g(x) via moment matching. |
AutoSolver | class | Automatic solver selection from the operator’s type, size and tags. |
BBMMSolver | class | CG solve and SLQ logdet with BBMM’s defaults (Gardner et al. 2018). |
BYM2GMRF | class | The BYM2 pair (b, u*) (Riebler et al., 2016), with its exact density. |
BernoulliLikelihood | class | Bernoulli likelihood with logit link. |
BinomialLikelihood | class | Binomial likelihood with logit link. |
BlockDiag | class | Block-diagonal operator A = blockdiag(A_1, …, A_D), one block per slice. |
BlockTriDiag | class | Block-tridiagonal operator A with a symmetric off-diagonal band. |
CGSolver | class | Conjugate-gradient solve with a stochastic log-determinant. |
CUR | class | CUR decomposition A ≈ C U R, with C = A_:,J and R = A_I,:. |
CallableLikelihood | class | A factorised likelihood from a per-site log density. |
CapacitanceSolver | class | Solve a base system subject to homogeneous point constraints. |
Chandrupatla | class | Chandrupatla’s hybrid inverse-quadratic / bisection root finder. |
ColumnID | class | Column interpolative decomposition A ≈ A_:,J X. |
ComposedSolver | class | Mix-and-match a solve and a log-determinant from different strategies. |
ConstantSDE | class | State-space form of the constant kernel k(τ) = σ_k². |
ConstrainedGMRF | class | A GaussianMRF conditioned on hard linear constraints A_c x = e. |
CosineSDE | class | State-space form of the cosine kernel k(τ) = σ_k² cos(ω₀ τ). |
CubatureIntegrator | class | Third-order spherical-radial cubature on 2 D_x equally weighted points. |
DAREResult | class | Output of dare: the steady-state covariance Σ_x,∞ and gain G_∞. |
DenseFallbackWarning | class | Warning emitted when a structured primitive materialises an operator. |
DenseLogdet | class | Exact log-determinant by gaussx’s structural dispatch. |
DenseSolver | class | Exact solver strategy through gaussx structural dispatch. |
DiagonalSplit | class | A system A = base + diag(diagonal), read back into its two parts. |
DiagonalizedOperator | class | Linear operator A = W⁻¹ diag(γ) W given by a transform pair. |
EigenDecomposition | class | Precomputed eigendecomposition A = V diag(γ) V⁻¹ of a square matrix. |
EmissionModel | class | Linear observation (emission) model with a dense observation operator H. |
FITCPreconditioner | class | Nyström-plus-diagonal (“FITC”) preconditioner of A = K_XX + Λ. |
FifthOrderCubatureIntegrator | class | Fifth-order fully symmetric cubature on 2 D_x² + 1 points. |
FilterState | class | Output of kalman_filter: the filtered and predicted moments of x_t. |
GaussHermiteIntegrator | class | Gauss-Hermite integrator: a tensor-product rule on order^D_x points. |
GaussianExpFam | class | Gaussian 𝒩(μ, Σ) held by its natural parameters (Λ μ, −½ Λ). |
GaussianLikelihood | class | Gaussian likelihood with isotropic noise, with a closed-form ELL. |
GaussianMRF | class | Gaussian Markov random field x ~ 𝒩(μ, Λ⁻¹) with a structured precision Λ. |
GaussianSites | class | Time-varying Gaussian likelihood sites in natural parameterization. |
GaussianSketch | class | Gaussian sketch: i.i.d. entries S_ij ~ 𝒩(0, 1/d). |
GaussianState | class | Gaussian belief as a pair of mean and covariance operator. |
HeteroscedasticGaussianLikelihood | class | Heteroscedastic Gaussian likelihood with input-dependent noise. |
IndefiniteSLQLogdet | class | Stochastic log |det(A + σ I)| for symmetric, possibly indefinite, A. |
InformationDiagnostics | class | Output of information_diagnostics. |
IntegratedWienerSDE | class | State-space form of the p-times integrated Wiener process. |
InterpolatedOperator | class | Structured kernel interpolation A = W_interp K_ℐℐ W_interpᵀ ≈ K_XX. |
IntrinsicGMRF | class | Improper Gaussian field x ~ 𝒩(μ, (τ R)⁺) on the complement of ker R. |
JacobiPreconditioner | class | Diagonal preconditioner M⁻¹ = diag(1 / |diag(A)|). |
KeyedSolver | class | Bind a PRNG key to a strategy’s stochastic log-determinant (gh-384). |
Kronecker | class | Kronecker product A = A_1 ⊗ … ⊗ A_D, applied one factor at a time. |
KroneckerSum | class | Kronecker sum A_1 ⊕ A_2 = A_1 ⊗ I + I ⊗ A_2 of two square operators. |
KroneckerSumSqrt | class | Symmetric square root S of A_1 ⊕ A_2 from the factor eigenvectors. |
LOOResult | class | Result of leave_one_out_cv: the LOO log-likelihood and predictives. |
LOVECache | class | Cached rank-k Lanczos approximation Q diag(θ)⁻¹ Qᵀ of Σ_y⁻¹. |
LSMRSolver | class | LSMR iterative least-squares solver (Fong & Saunders 2011). |
LaplaceModel | class | The latent Gaussian model of a Laplace fit, with the maps one Newton step needs. |
LaplaceResult | class | The Gaussian approximation 𝒩(x̂, Λ_x|y⁻¹) at the mode. |
LinearGaussianPosterior | class | Posterior 𝒩(x_a, P_a) of linear_gaussian_update. |
LinearizedSDE | class | Linear surrogate dx(t) = (F_c,t x(t) + c_t) dt + L_c db(t) of an SDE. |
LineaxSolver | class | A lineax solver as a gaussx solve strategy. |
LowRankUpdate | class | Low-rank update A = A₀ + U D Vᵀ of a base operator, with D = diag(d). |
LowerBlockTriDiag | class | Lower block-bidiagonal operator L, the block Cholesky factor of A. |
MINRESSolver | class | MINRES solver for symmetric, possibly indefinite, systems. |
MaskedOperator | class | Masked view A = A₀[m_r, m_c] of a square base operator A₀. |
MaternSDE | class | State-space form of the Matérn kernel of order p, smoothness p + ½. |
MomentMatchResult | class | Tilted log-normaliser and its derivatives with respect to the cavity mean. |
MonteCarloIntegrator | class | Monte Carlo moment matching: sample, propagate, take empirical moments. |
MultigridLevel | class | One level of a hierarchy: A_ℓ, its transfers and its smoother. |
MultigridPreconditioner | class | One V-cycle as the preconditioner M⁻¹ ≈ A⁻¹. |
MultigridSolver | class | CG preconditioned by a V-cycle over the caller’s levels. |
NegativeBinomialLikelihood | class | Negative-binomial likelihood with log link (NB2, a gamma-Poisson mixture). |
NystromLogdet | class | Nyström-preconditioned SLQ log-determinant of K + σ² I (Wenger et al., 2022). |
NystromPreconditioner | class | Randomized Nyström preconditioner for K + σ² I. |
OperatorPreconditioner | class | Use an externally supplied approximate inverse as a preconditioner. |
OrthonormalSketch | class | Gaussian sketch with orthonormal rows, S Sᵀ = I_d. |
PartialCholeskyPreconditioner | class | Preconditioner from a pivoted partial Cholesky factor. |
PeriodicSDE | class | State-space form of the periodic (MacKay) kernel, as J + 1 harmonics. |
PoissonLikelihood | class | Poisson likelihood with log link. |
PreconditionedCGSolver | class | CG with a pivoted partial Cholesky preconditioner. |
PredictionCache | class | Cached training solve α = Σ_y⁻¹ y (and factor L_y) for amortized predictions. |
ProductSDE | class | Product of two SDE kernels, by Kronecker composition. |
PropagationResult | class | Output moments of a Gaussian pushed through a nonlinear map g. |
QuasiPeriodicSDE | class | Quasi-periodic kernel: a Matérn factor times a periodic factor. |
RootDecomposition | class | Tall factor R of a root decomposition, A ≈ R Rᵀ. |
RowSamplingSketch | class | Weighted row-sampling sketch. |
SDEKernel | class | Abstract state-space form of a kernel k(τ): a linear SDE. |
SDEParams | class | Continuous-time matrices (F_c, L_c, H, Q_c, Σ_x,∞) of a linear SDE. |
SLQLogdet | class | Stochastic log-determinant by stochastic Lanczos quadrature (SLQ). |
SLRResult | class | Linear-Gaussian surrogate produced by statistical linear regression. |
SRHTSketch | class | Subsampled randomized Hadamard transform sketch. |
SitePosterior | class | 𝒩(μ_f|y, Σ_f|y) for a covariance-form prior and diagonal sites. |
SketchAndPrecondLSMR | class | Sketch-and-precondition LSMR for tall least squares (Rokhlin & Tygert, 2008). |
SoftmaxLikelihood | class | Softmax (categorical) likelihood for multi-class classification. |
SolveInfo | class | How a solve ended, from linear_solve_with_info. |
SparseCholeskyFactor | class | Sparse Cholesky factor on a static symbolic pattern. |
SparseCholeskySolver | class | Exact solve / logdet / diag_inv through a sparse Cholesky factor. |
SparseOperator | class | Sparse matrix A with a static SparsityPattern and traced values. |
SparseSignSketch | class | Sparse sign sketch (sparse Johnson-Lindenstrauss transform). |
SparsityPattern | class | Static, hashable sparsity pattern of an M × N matrix A. |
SpectralFunction | class | f(A) = W⁻¹ diag(f(γ)) W for a symmetric A with a factored eigenbasis. |
StudentTLikelihood | class | Student-t likelihood for robust regression. |
SumOfKroneckers | class | Sum of Kronecker products ∑_j A_j ⊗ B_j, applied term by term. |
SumOfKroneckersSqrt | class | Lazy Lanczos square root A^½ of a SumOfKroneckers covariance. |
SumSDE | class | Sum of independent SDE kernels, stacked block-diagonally. |
SymbolicCholesky | class | Symbolic Cholesky factor of a symmetric sparsity pattern. |
TaylorIntegrator | class | First- or second-order Taylor expansion of g about the mean. |
Toeplitz | class | Symmetric Toeplitz matrix A = toeplitz(t) from its first column t. |
ToeplitzCholesky | class | Circulant-embedding sample factor L, N × M, with L Lᵀ = toeplitz(t). |
UDLDecomposition | class | Banded factorisation Λ_x = U D Uᵀ of a block-tridiagonal precision. |
UnscentedIntegrator | class | Unscented transform: 2 D_x + 1 deterministic sigma points. |
UpperBlockTriDiag | class | Upper block-bidiagonal operator U, the transpose of a LowerBlockTriDiag. |
WeightedJacobi | class | Weighted Jacobi: u ← u + ω D⁻¹ (b − A u), sweeps times. |
add_jitter | function | Diagonal jitter A + β I for numerical stability. |
ar1_precision | function | Precision of a stationary AR(1) process with marginal precision τ. |
as_diagonalized | function | Express an operator as one DiagonalizedOperator, if possible. |
as_linear_operator | function | Wrap a raw matvec callable as a tagged lineax operator. |
besag_structure | function | Validate a graph Laplacian as a Besag (ICAR) structure matrix. |
block_diagonal_tag | constant | block_diagonal_tag |
block_tridiagonal_tag | constant | block_tridiagonal_tag |
blr_diag_update | function | Damped BLR step on the natural parameters of a diagonal Gaussian. |
blr_full_update | function | Damped BLR step on the natural parameters of a full-rank Gaussian. |
build_prediction_cache | function | Solve Σ_y α = y and cache the result. |
bym2_precision | function | Joint precision Λ of the BYM2 pair (b, u*) (Riebler et al., 2016). |
cavity_distribution | function | EP cavity distribution: remove a fraction α of a site from the marginal. |
cavity_from_marginal | function | Cavity distribution: the marginal with one site divided out. |
cholesky | function | Lower Cholesky factor L of an operator, structured where A is. |
cholesky_logdet | function | Log-determinant log det A from a Cholesky factor L of A = L Lᵀ. |
circulant | function | (Block-)circulant operator C from its first column c. |
circulant_from_symbol | function | (Block-)circulant operator C = DFT⁻¹ diag(γ) DFT from its symbol γ. |
collapsed_elbo | function | Collapsed ELBO (Titsias bound) for sparse GP regression. |
column_id | function | Randomized column interpolative decomposition (Voronin & Martinsson, 2017). |
compose_solver | function | One strategy from a solver, a preconditioner and a log-determinant. |
compute_psi_statistics | function | Compute Ψ statistics, dispatching to analytical or numerical. |
conditional | function | Conditional p(x_A ∣ x_B = b) of a joint Gaussian 𝒩(μ, Σ) from observed entries. |
conditional_interpolate | function | Two-filter fusion at t from a filtered state and a backward message. |
conditional_variance | function | Predictive variance: the Schur-complement diagonal plus a variational term. |
cost_expectation | function | Expected cost of a prediction under an uncertain state. |
cov_transform | function | Covariance propagation through a linear map, J Σ Jᵀ. |
create_grid | function | Regular grid axes g_d = linspace(lo_d, hi_d, N_d), one per dimension. |
cubature_points | function | Spherical-radial cubature points and weights, 2 D_x of them. |
cur | function | Randomized CUR decomposition (Voronin & Martinsson, 2017, §4). |
cvi_update_sites | function | Damped natural-gradient update of CVI sites. |
damped_natural_update | function | Damped update in natural-parameter space. |
dare | function | Steady-state Kalman filter covariance and gain (the filtering DARE). |
diag | function | Diagonal diag(A) of an operator, with structural dispatch. |
diag_conditional_variance | function | Diagonal of the Schur complement, max([K_XX]_nn − [A_X K_ZX]_nn, 0). |
diag_inv | function | Diagonal of the inverse, diag(A⁻¹), without forming A⁻¹. |
diagonal_tag | constant | Re-exported from lineax. |
discrepancy_step_size | function | Adaptive EKI tempering step: the data misfit controller. |
discrete_lyapunov_solve | function | Solve the discrete Lyapunov equation X − A X Aᵀ = B by diagonalising A. |
discretize_mfd | function | Discretise a linear SDE by matrix-fraction decomposition. |
discretize_mfd_sequence | function | Vectorised gaussx.discretize_mfd over a stack of steps Δt_1:T. |
eig | function | Eigenvalues and eigenvectors of A, with structural dispatch. |
eigh_generalized | function | Generalised eigenproblem A v = γ B v, A symmetric and B symmetric PSD. |
eigvals | function | Eigenvalues of A only, with structural dispatch. |
eki_step | function | One ensemble Kalman inversion (EKI) update. |
elbo | function | Evidence lower bound (ELBO) from a likelihood and a precomputed KL. |
enkf_analysis | function | Stochastic (perturbed-observation) ensemble Kalman analysis step. |
ensemble_covariance | function | Empirical covariance from an ensemble as a low-rank operator. |
ensemble_cross_covariance | function | Cross-covariance between two ensembles with the same members. |
ensemble_kalman_gain | function | Kalman gain from an ensemble and its image in observation space. |
ensemble_rts_step | function | One backward step of the ensemble Rauch-Tung-Striebel smoother. |
ep_tilted_moments | function | Moments of the scalar EP tilted distribution, elementwise over a batch. |
estimate_spectral_bounds | function | Estimate the extreme eigenvalues (γ_min, γ_max) of a symmetric operator. |
etkf_analysis | function | ETKF analysis ensemble, without forming the (|ℰ|, |ℰ|) transform. |
etkf_transform | function | Ensemble Transform Kalman Filter (ETKF) analysis weights. |
euclidean_distance | function | Pairwise Euclidean distances ‖aₙ − bₘ‖₂. |
expectation_to_mean_chol | function | Mean μ and Cholesky factor of Σ from the expectation parameters. |
expectation_to_natural | function | Natural parameters (Λ μ, −½ Λ) from the expectation parameters. |
expectations_to_ssm | function | Marginals of a chain from its expectation parameters (𝔼[x], 𝔼[x xᵀ]). |
expected_log_likelihood | function | Unified expected log-likelihood with analytical dispatch. |
fem_matrices | function | Lumped mass C̃ and stiffness G of P1 elements on a triangle mesh. |
fem_projector | function | Observation matrix A of P1 interpolation: (A w)_k = ∑_i ψ_i(s_k) w_i. |
fifth_order_cubature_points | function | Fifth-order fully symmetric cubature points and weights. |
fisher_info | function | Fisher information of the mean μ, which is the precision Λ = Σ⁻¹. |
frobenius_norm | function | Frobenius norm ‖A‖_F of an operator, with structural dispatch. |
galerkin_levels | function | A hierarchy with Galerkin coarse operators A_ℓ₊₁ = R_ℓ A_ℓ P_ℓ. |
gaspari_cohn | function | Gaspari-Cohn (1999) fifth-order compactly supported taper. |
gauss_hermite_points | function | Tensor-product Gauss-Hermite points and weights for a standard Gaussian. |
gauss_kl | function | KL(first ‖ second): KL[q(f_ℐ) ‖ p(f_ℐ)] with p(f_ℐ) = 𝒩(0, K_ℐℐ). |
gauss_newton_operator | function | Matrix-free Gauss-Newton precision of a residual function. |
gauss_newton_precision | function | Gauss-Newton precision J_rᵀ J_r, optionally plus a prior precision. |
gaussian_entropy | function | Entropy of a multivariate normal 𝒩(μ, Σ), independent of the mean. |
gaussian_expected_log_lik | function | Expected Gaussian log-likelihood under q(x), the data term of an ELBO. |
gaussian_kl | function | KL(first ‖ second): KL[p ‖ q] between two multivariate normals. |
gaussian_log_prob | function | Multivariate normal log-density log 𝒩(x; μ, Σ) of a structured covariance. |
gaussian_taper | function | Gaussian localization taper ρ(r) = exp(−r² / (2 L²)). |
generalized_variance_scale | function | Generalized variance of an intrinsic GMRF (Sørbye & Rue, 2014). |
ggn_diagonal | function | Diagonal of the generalized Gauss-Newton matrix J_hᵀ J_h. |
gradient_expectation | function | Expected gradient of a scalar map under a Gaussian, via Stein’s lemma. |
grid_coupling_indices | function | Flat indices of masked-out grid cells adjacent to the masked-in region. |
grid_data | function | Inducing inputs X_ℐ, the Cartesian product of the grid axes. |
hadamard_transform | function | Unnormalized Walsh-Hadamard transform along the last axis. |
haversine_distance | function | Pairwise great-circle (haversine) distances on a sphere. |
hutchinson_hessian_diag | function | Stochastic Hessian diagonal by Hutchinson with Rademacher probes. |
iid_precision | function | Precision Λ = τ I of n independent effects with variance 1 / τ. |
infinite_horizon_filter | function | Infinite-horizon Kalman filter with the fixed steady-state gain G_∞. |
infinite_horizon_smoother | function | Infinite-horizon RTS smoother with the fixed steady-state gain G_smooth,∞. |
inflate_multiplicative | function | Multiplicative ensemble inflation about the sample mean. |
inflate_rtpp | function | Relaxation to prior perturbations (RTPP). |
inflate_rtps | function | Relaxation to prior spread (RTPS). |
information_diagnostics | function | Averaging kernel, DOFS and information content of a linear retrieval. |
interpolation_operator | function | The interpolation matrix W as a matrix-free operator, B × G. |
inv | function | Lazy inverse A⁻¹ of an operator, structured where A is. |
inv_quad_logdet | function | Joint inverse-quadratic and log-determinant via shared BBMM CG. |
is_block_diagonal | function | Check whether operator carries the block-diagonal tag. |
is_block_tridiagonal | function | Check whether operator carries the block-tridiagonal tag. |
is_diagonal | function | Re-exported from lineax. |
is_eigen_reducible | function | Whether a sum of Kronecker products has the exact two-term reduction. |
is_kronecker | function | Check whether operator carries the Kronecker tag. |
is_kronecker_sum | function | Check whether operator carries the Kronecker sum tag. |
is_low_rank | function | Check whether operator carries the low-rank tag. |
is_lower_triangular | function | Re-exported from lineax. |
is_negative_semidefinite | function | Re-exported from lineax. |
is_positive_semidefinite | function | Re-exported from lineax. |
is_symmetric | function | Re-exported from lineax. |
is_upper_triangular | function | Re-exported from lineax. |
joseph_update | function | Joseph-form posterior covariance of a Kalman update, stable for any gain. |
kalman_filter | function | Kalman filter forward pass for a linear-Gaussian state-space model. |
kalman_gain | function | Kalman gain of a linear-Gaussian observation of the state x. |
kernel_expectations | function | Kernel expectations Ψ₀, Ψ₁ and Ψ₂ for an uncertain input. |
kl_divergence | function | KL(first ‖ second): KL[q ‖ p] in the Bregman form on natural parameters. |
kl_standard_normal | function | KL(first ‖ second): KL[𝒩(μ, Σ) ‖ 𝒩(0, I)] from the standard normal. |
kronecker_mll | function | Exact marginal log-likelihood log p(y) of a Kronecker-structured GP. |
kronecker_posterior_predictive | function | Posterior mean and variance of a Kronecker GP at grid test inputs. |
kronecker_sum_sample | function | Sample from 𝒩(0, A_1 ⊕ A_2) through the factor eigendecompositions. |
kronecker_sum_solve | function | Solve a shifted Kronecker-sum system in tensor (unvectorised) form. |
kronecker_sum_tag | constant | kronecker_sum_tag |
kronecker_tag | constant | kronecker_tag |
laplace_model | function | Collect and check the pieces of the latent Gaussian model of a Laplace fit. |
laplace_result | function | The Gaussian approximation and the Laplace log-marginal at a mode. |
leave_one_out_cv | function | LOO-CV via the bordered-system identity, without refitting N times. |
ledoit_wolf_shrinkage | function | Ledoit-Wolf shrinkage of an ensemble covariance, without forming it. |
lift_known_values | function | Lift prescribed values to the right-hand side of A x = b. |
linear_gaussian_update | function | Matrix-free posterior of a linear-Gaussian observation. |
linear_solve | function | Solve A x = b through the unified front door. |
linear_solve_with_info | function | Solve A x = b as linear_solve does, and report how the solve ended. |
linearize_sde | function | Optimal linear drift of a nonlinear SDE along a Gaussian path. |
localization_matrix | function | Pairwise Gaspari-Cohn taper ρ(d(aₙ, bₘ); c). |
localized_kalman_gain | function | Ensemble Kalman gain with Hadamard (Schur-product) localization. |
log_likelihood_expectation | function | Expected log-likelihood of a callable under a Gaussian, by integration. |
log_marginal_likelihood | function | GP log marginal likelihood, by way of gaussx.gaussian_log_prob. |
log_partition | function | Log-partition of a Gaussian in natural form, normaliser included. |
logdet | function | Log-determinant log ∣det A∣ with structural dispatch on the operator type. |
love_cache | function | Precompute a Lanczos approximation of Σ_y⁻¹ for fast GP variances. |
love_residual | function | Relative solve residual of a LOVE cache for one cross-covariance. |
love_variance | function | Approximate the variance reduction k_X*ᵀ Σ_y⁻¹ k_X* from a LOVE cache. |
love_variance_error_bound | function | Upper bound on the variance over-estimate of a LOVE cache. |
low_rank_plus_diag | function | Build A = diag(a) + U D Vᵀ, a low-rank update of a diagonal base. |
low_rank_plus_identity | function | Build A = c I + U D Vᵀ, a low-rank update of a scaled identity. |
low_rank_tag | constant | low_rank_tag |
lower_triangular_tag | constant | Re-exported from lineax. |
masked_moment_inputs | function | Make masked observation channels inert in a moment-matched update. |
masked_obs_covariance | function | Observation-error covariance with masked entries marginalised out. |
matern_spde_params | function | SPDE parameters (κ, τ, α) of a Matérn field. |
matheron_update | function | Posterior draws of x_A ∣ x_B = β from joint prior draws, by Matheron’s rule. |
mean_chol_to_expectation | function | Expectation parameters (𝔼[x], 𝔼[x xᵀ]) from the mean and Cholesky factor. |
mean_chol_to_natural | function | Natural parameters (Λ μ, −½ Λ) from the mean and the Cholesky factor of Σ. |
mean_cov_to_natural | function | Natural parameters (Λ μ, −½ Λ) from the mean and covariance, in operator form. |
mean_expectation | function | Expectation of a map under a Gaussian: 𝔼[g(x)], x ~ 𝒩(μ_x, Σ_x). |
meanfield_kalman_filter | function | Mean-field Kalman filter over L = D_x / d independent state blocks. |
meanfield_rts_smoother | function | Mean-field RTS smoother over L = D_x / d independent state blocks. |
mixture_quantile | function | Invert a CDF at one or more quantile levels by bracketed root finding. |
mixture_quantile_gaussian_approx | function | Quantiles of the Gaussian matched to an ensemble’s first two moments. |
moment_match | function | EP moment matching: tilted log-normaliser and its first two derivatives. |
moment_transform | function | Moment triple of (x, g(x)) for a Gaussian x. |
natural_to_expectation | function | Expectation parameters (𝔼[x], 𝔼[x xᵀ]) from the natural parameters. |
natural_to_mean_chol | function | Mean μ and Cholesky factor of Σ from the natural parameters (Λ μ, −½ Λ). |
natural_to_mean_cov | function | Mean μ and covariance Σ from the natural parameters, in operator form. |
naturals_to_ssm | function | Gauss-Markov chain (F_t, Σ_η,t, μ_x,0, Σ_x,0) from its natural parameters. |
negative_semidefinite_tag | constant | Re-exported from lineax. |
newton_update | function | Convert a Newton step into the natural parameters of a site. |
nonlinear_kalman_filter | function | Moment-matched nonlinear Kalman filter (EKF, UKF, CKF, GHKF, …). |
nonlinear_kalman_predict | function | One moment-matched predict step through the dynamics f. |
nonlinear_kalman_update | function | One moment-matched update step through the observation map h. |
nonlinear_rts_smoother | function | Moment-matched nonlinear Rauch-Tung-Striebel smoother. |
nonlinear_rts_step | function | One moment-matched RTS backward step. |
oilmm_back_project | function | Back-project latent GP predictions to the observation space. |
oilmm_project | function | Project multi-output data to independent latent GPs via OILMM. |
pairwise_marginals | function | Joint Gaussian p(x_t, x_t+1) of each pair of consecutive states. |
parallel_kalman_filter | function | Parallel Kalman filter via jax.lax.associative_scan. |
parallel_rts_smoother | function | Parallel RTS smoother via reverse jax.lax.associative_scan. |
positive_semidefinite_tag | constant | Re-exported from lineax. |
predict_mean | function | Predictive mean of a GP at the test inputs, from a prediction cache. |
predict_variance | function | Predictive variance of a GP at the test inputs, from a prediction cache. |
predictive_variance_sbpv | function | Simulation-based predictive variance (SBPV), unbiased and consistent. |
predictive_variance_spv | function | Stochastic predictive variance (SPV) by Rademacher diagonal probes. |
process_noise_covariance | function | Model-noise covariance Σ_η,t of a step, from the stationary covariance. |
product_operator | function | Lazy product A B, applied right to left. |
project | function | Projection A_X = K_Xℐ K_ℐℐ⁻¹ onto the inducing inputs via Cholesky solves. |
pseudo_logdet | function | Log pseudo-determinant: the log of the product of the non-zero eigenvalues. |
qb | function | Randomized QB factorisation A ≈ Q B with B = Qᵀ A. |
quadratic_form | function | Quadratic form xᵀ A⁻¹ x through a single solve. |
randomized_eigh | function | Partial eigendecomposition of a symmetric operator by Rayleigh-Ritz. |
randomized_nystrom | function | Randomized Nyström approximation  = U diag(γ̂) Uᵀ of a PSD A. |
randomized_svd | function | Truncated SVD A ≈ U diag(s) Vᵀ by randomized QB. |
range_finder | function | Orthonormal basis Q for the dominant range of A. |
riemannian_psd_correction | function | Riemannian gradient correction for PSD precision updates. |
root_decomposition | function | Root decomposition of an SPD operator: a tall factor R with A ≈ R Rᵀ. |
root_inv_decomposition | function | Inverse-root decomposition: a tall factor R⁻ with A⁻¹ ≈ R⁻ (R⁻)ᵀ. |
row_kron | function | Row-wise Kronecker (face-splitting) product A • B of two sparse operators. |
rp_cholesky | function | Randomly pivoted partial Cholesky of a PSD matrix A. |
rts_interpolate | function | Smoothed marginal at an unobserved step t from filtered and smoothed states. |
rts_sample | function | Joint draws of the state path x_1:T from p(x_1:T | y_1:T). |
rts_smoother | function | Rauch-Tung-Striebel backward smoother for kalman_filter output. |
rw1_structure | function | Structure matrix R = D₁ᵀ W D₁ of a first-order random walk. |
rw2_structure | function | Structure matrix R = D₂ᵀ D₂ of a second-order random walk. |
safe_cholesky | function | Cholesky factor with adaptive diagonal jitter for near-singular matrices. |
sample_joint_conditional | function | Joint draws of a partitioned Gaussian, and conditional draws from them. |
sample_mvn | function | Draw samples from 𝒩(μ, Σ), dispatching on the structure of Σ. |
sandwich | function | The sandwich A Σ Aᵀ of two operators, keeping compatible structure. |
scaled_operator | function | Lazy scalar multiple c A, applied after the matvec. |
schur_complement | function | Schur complement K_XX − K_XZ K_ZZ⁻¹ K_ZX, kept as a low-rank update. |
sde_autocovariance | function | Stationary autocovariance k(τ) of an SDE kernel at each lag τ. |
sde_kl_divergence | function | Drift path-KL between a linear and a nonlinear SDE along a Gaussian path. |
selected_inverse | function | The band of Σ = Λ⁻¹ for a symmetric positive-definite BlockTriDiag. |
sigma_point_kalman_update | function | One moment-matched update from evaluations the caller already has. |
sigma_points | function | Scaled unscented sigma points and weights, 2 D_x + 1 of them. |
site_evidence_correction | function | The correction from the pseudo-observation marginal to the site evidence. |
site_log_evidence | function | log Z of a Gaussian-site posterior, from its system A = K_XX + diag(d). |
site_mean_var_from_natural | function | Mean and variance of a site from its natural parameters. |
site_natural_from_tilted | function | Site natural parameters that turn the cavity into the tilted moments. |
site_posterior | function | The Gaussian posterior of diagonal sites under a covariance-form prior. |
sites_to_precision | function | Block-diagonal precision of the sites, as a BlockTriDiag. |
sketch_and_solve | function | Approximate least squares from a sketch. |
soar_taper | function | Second-order auto-regressive (SOAR) taper ρ(r) = (1 + |r| / L) exp(−|r| / L). |
solve | function | Solve A x = b with structural dispatch on the operator type. |
solve_columns | function | Solve A X = B column by column, with structured dispatch per column. |
solve_matrix | function | Solve A X = B with one factorisation for the whole matrix right-hand side. |
solve_rows | function | Solve A xᵢ = bᵢ for each row bᵢ of a matrix B, with one solve per row. |
solve_with_known_values | function | Solve A x = b on the unknowns, with x prescribed on the known set. |
sparse_cholesky | function | Sparse Cholesky factorisation of a symmetric positive-definite operator. |
sparse_conditional | function | Sparse-GP conditional q(f_X) = ∫ p(f_X ∣ f_ℐ) q(f_ℐ) df_ℐ, per output r. |
spde_precision | function | SPDE precision Λ_α = τ² K (C̃⁻¹ K)^(α−1) with K = κ² C̃ + G. |
spde_precision_grid | function | SPDE precision on a regular grid: a function of a Kronecker sum. |
spingp_log_likelihood | function | Log marginal likelihood log p(y_1:T) of a zero-mean SpInGP prior. |
spingp_posterior | function | Posterior mean μ_x|y and precision Λ_x|y of x_1:T under SpInGP. |
split_diagonal | function | Read A = K + diag(d) back into its kernel part K and its diagonal d. |
sqrt | function | Principal matrix square root A^½ with structural dispatch, lazy where possible. |
sqrt_inv_matmul | function | Inverse square root times a matrix, A^−½ B, by contour quadrature. |
sqrt_matmul | function | Square root times a matrix, A^½ B, by contour quadrature. |
ssm_to_expectations | function | Expectation parameters (𝔼[x], 𝔼[x xᵀ]) of a chain from its marginals. |
ssm_to_naturals | function | Natural parameters (Λ_x μ_x, −½ Λ_x) of a Gauss-Markov chain. |
stable_squared_distances | function | Squared Euclidean distances between two point sets, centred and widened. |
statistical_linear_regression | function | Moment-match a nonlinear conditional to a linear-Gaussian surrogate. |
submatrix | function | Sub-matrix A[I, J] of an operator, without forming the full matrix. |
sufficient_stats | function | Sufficient statistics (x, x xᵀ) of a Gaussian, over any batch axes. |
sum_of_kroneckers_sample | function | Sample from 𝒩(0, K) with a matrix-free Lanczos square root. |
sum_operator | function | Lazy sum A = A_1 + … + A_D, applied one summand at a time. |
svd | function | Singular value decomposition of A, with structural dispatch. |
svd_low_rank_plus_diag | function | Build A = diag(a) + U diag(s) Vᵀ from a truncated SVD. |
svgp_variance_adjustment | function | SVGP variance adjustment operator Q = K_ℐℐ⁻¹ Σ_ℐ K_ℐℐ⁻¹ − K_ℐℐ⁻¹. |
symbolic_cholesky | function | Symbolic analysis of a sparse Cholesky factorisation (host, cached). |
symmetric_tag | constant | Re-exported from lineax. |
symmetrize | function | Symmetric part of the trailing two axes, removing round-off asymmetry. |
theta_design | function | Integration points and log-weights over hyperparameters θ. |
tikhonov_augment | function | Observation augmentation for Tikhonov-regularised EKI (TEKI). |
to_mean_cov | function | Mean μ and covariance Σ of a Gaussian in natural form. |
toeplitz_sample | function | Draw from 𝒩(0, toeplitz(t)) by circulant embedding and the FFT. |
trace | function | Trace tr(A) of an operator, with structural dispatch. |
trace_and_diag | function | Joint stochastic estimate of tr(A) and diag(A) from one probe pass. |
trace_correction | function | Trace term of the Titsias collapsed ELBO, the Nyström approximation error. |
trace_product | function | Trace of a product of two operators, tr(A B), with structural dispatch. |
tridiagonal_solve | function | Solve a tridiagonal system A x = b from its three bands. |
tridiagonal_solve_batched | function | Solve independent tridiagonal systems over leading batch axes. |
tridiagonal_tag | constant | Re-exported from lineax. |
udl_decomposition | function | Factorise a symmetric block-tridiagonal precision as Λ_x = U D Uᵀ. |
udl_from_ssm_params | function | Build the UDLDecomposition of a Gauss-Markov chain’s precision. |
udl_to_ssm_params | function | Read the equivalent Gauss-Markov chain off a UDLDecomposition. |
uncertain_bgplvm_predict | function | Multi-output uncertain GP prediction for a Bayesian GP-LVM. |
uncertain_gp_predict | function | Predictive mean and variance of a GP at an uncertain input. |
uncertain_gp_predict_mc | function | Monte Carlo GP prediction at an uncertain input, by total variance. |
uncertain_svgp_predict | function | Predictive mean and variance of an SVGP at an uncertain input. |
uncertain_vgp_predict | function | Predictive mean and variance of a dense VGP at an uncertain input. |
unit_diagonal_tag | constant | Re-exported from lineax. |
unwhiten | function | Unwhiten a variational mean: μ_ℐ = L_ℐℐ μ_z. |
unwhiten_covariance | function | Unwhiten a variational covariance: Σ_ℐ = L_ℐℐ Σ_z L_ℐℐᵀ. |
upper_triangular_tag | constant | Re-exported from lineax. |
variational_elbo_gaussian | function | Uncollapsed (SVGP) ELBO for a Gaussian likelihood. |
variational_elbo_mc | function | Monte Carlo ELBO for non-conjugate likelihoods. |
vb_mean_correction | function | Low-rank VB correction of the Laplace mean (Van Niekerk & Rue, 2024). |
whiten_covariance | function | Unwhiten a variational covariance: Σ_ℐ = L_ℐℐ Σ_z L_ℐℐᵀ. |
whitened_svgp_predict | function | Whitened SVGP prediction: per-input means μ_n and variances σ²_n. |
woodbury_solve | function | Solve (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¶
| Name | Kind | What it does |
|---|---|---|
AbstractEstimator | class | Configure, fit, predict. |
AbstractFeatureMap | class | A finite-dimensional approximation k(x, x') ≈ φ(x)ᵀ φ(x'). |
AbstractGraph | class | Weighted, undirected graph without self-loops. |
AbstractGreatCircleKernel | class | on (lon, lat) inputs. |
AbstractKernel | class | Anything that produces a Gram matrix. |
AbstractMeshKernel | class | A kernel on a triangle mesh given by its Laplace-Beltrami spectrum. |
AbstractPointwiseKernel | class | A kernel defined by k(x, x'). |
AbstractSphereSeriesKernel | class | A kernel on given by its Laplace-Beltrami spectrum . |
AbstractStationaryKernel | class | k(x, x') = variance * shape(||(x - x') / lengthscale||²). |
ActiveDims | class | Apply a kernel to a subset of input dimensions. |
Advected | class | A frozen spatial field moving at a constant velocity. |
CKAAccumulator | class | Running mini-batch CKA (Nguyen, Raghu & Kornblith, 2021). |
Chordal | class | A Euclidean kernel on points of the sphere, . |
Constant | class | Constant kernel, k(x, x') = sigma^2. |
Cosine | class | Cosine kernel, sigma^2 cos(2 pi ||x - x'|| / p). |
Cubic | class | Cubic covariance model, compactly supported. |
CurlFree | class | Curl-free kernel: the covariance of a gradient field . |
CurlFreeFeatures | class | Hilbert-space features of a curl-free 2-D vector field. |
Derivative | class | for fixed input dimensions. |
DerivativeIndexed | class | Joint covariance of a GP’s values and partial derivatives. |
Distance | class | Distance-induced kernel, k(x, x') = σ² (|x|^a + |x'|^a - |x - x'|^a) / 2. |
DivergenceFree | class | Divergence-free kernel: the covariance of a rotated gradient field. |
DivergenceFreeFeatures | class | Hilbert-space features of a divergence-free 2-D vector field. |
EARTH_RADIUS_KM | constant | Re-exported from builtins. |
EigenPro | class | Kernel regression by EigenPro-preconditioned SGD (Ma & Belkin, 2017). |
EigenProPreconditioner | class | Spectral correction state for EigenPro kernel SGD. |
Falkon | class | Nyström kernel ridge regression solved by Falkon (Rudi et al., 2017). |
FalkonInfo | class | Convergence report of a falkon_solve run. |
FalkonPreconditioner | class | The two upper-triangular Cholesky factors of the Falkon preconditioner. |
FastFoodFeatures | class | FastFood random features (Le, Sarlós & Smola, 2013) for any kernel with a spectral sampler. |
FastFoodParams | class | The random structure of a FastFood feature map. |
FeatureKernel | class | Inner product of features, . |
GeneralizedCauchy | class | Generalized Cauchy covariance model. |
GeometricAnisotropy | class | A rotated, stretched stationary kernel: a correlation ellipse or ellipsoid. |
Gibbs | class | Gibbs kernel: a lengthscale that varies with location. |
Gneiting | class | Gneiting’s non-separable space-time covariance. |
Graph | class | Sparse weighted graph: a static topology and traced edge weights. |
GraphEigenFeatures | class | Low-rank features of GraphMatern / GraphHeat from Laplacian eigenpairs. |
GraphHeat | class | Graph heat (diffusion) kernel on node indices. |
GraphMatern | class | Graph Matérn kernel on node indices (Borovitskiy et al., 2021). |
GraphTopology | class | Static, hashable edge list of an undirected graph without self-loops. |
GreatCircleAskey | class | Askey’s truncated power kernel, . |
GreatCircleCauchy | class | Generalized Cauchy kernel, . |
GreatCircleExponential | class | Exponential kernel of the great-circle angle, . |
GreatCirclePoweredExponential | class | Powered exponential kernel, . |
GreatCircleSpherical | class | The geostatistics spherical model of the great-circle angle. |
GreatCircleWendland | class | C²- or C⁴-Wendland kernel of the great-circle angle. |
GridGraph | class | Regular lattice graph that never stores its edges. |
Helmholtz | class | Helmholtz-decomposition kernel: curl-free plus divergence-free parts. |
HelmholtzFeatures | class | Helmholtz features: curl-free plus divergence-free columns. |
HoleEffect | class | Hole-effect (cardinal sine, “wave”) covariance model. |
ImplicitCrossKernelOperator | class | Matrix-free rectangular kernel operator K(X, Z) \cdot v. |
ImplicitKernelOperator | class | Matrix-free kernel operator: (K + sigma^2 I) v via sequential scan. |
JunStein | class | Axially symmetric kernel of Jun & Stein (2008), . |
KNNGraph | class | A directed k-nearest-neighbour graph, self excluded. |
KRR | class | Kernel ridge regression. |
KernelDensity | class | Weighted Parzen density . |
KernelLocalityPreservingProjections | class | Kernel locality preserving projections. |
KernelOperator | class | Kernel matrix operator with efficient first-order autodiff. |
KernelPCA | class | Kernel principal component analysis. |
KernelSchrodingerProjections | class | Kernel Schrödinger eigenmap projections. |
KroneckerFeatures | class | Features of a separable kernel as a product of two maps. |
LaplaceEigenfunctionFeatures | class | Hilbert-space (HSGP) approximation of a stationary kernel on a box. |
LaplacianEigenmaps | class | Laplacian eigenmaps (Belkin & Niyogi, 2003) of the k-NN graph of X. |
LatitudeScaled | class | Amplitude modulation by latitude, . |
LegendreLatitudeFn | class | A function of latitude, . |
Linear | class | Linear kernel, k(x, x') = sigma^2 x^T x' + b. |
LinearTransform | class | A stationary kernel of a linearly transformed lag. |
LocalityPreservingProjections | class | Locality preserving projections (He & Niyogi, 2003). |
Matern | class | Matern kernel with closed-form nu in {0.5, 1.5, 2.5}. |
MeshHeat | class | Heat (diffusion) kernel on a triangulated surface. |
MeshLaplaceFeatures | class | FEM Laplace-Beltrami eigenvector features of a mesh kernel. |
MeshMatern | class | Matérn kernel on a triangulated surface (Borovitskiy et al. 2020). |
Modulated | class | A kernel with an input-dependent amplitude, . |
NystromFeatures | class | Nyström features (Williams & Seeger, 2001) for any kernel. |
OrthogonalRandomFeatures | class | Orthogonal random features (Yu et al., 2016). |
PaciorekSchervish | class | Paciorek-Schervish kernel: a location-dependent anisotropy matrix. |
Pentaspherical | class | Pentaspherical covariance model, compactly supported. |
Periodic | class | Periodic (MacKay) kernel on the Euclidean distance. |
PeriodicFeatures | class | Exact truncated Fourier features of a 1-D Periodic kernel. |
Periodised | class | Make any kernel periodic: apply it to inputs wrapped onto circles. |
PermutationTestResult | class | Outcome of permutation_test. |
Polynomial | class | Polynomial kernel, k(x, x') = sigma^2 (x^T x' + b)^d. |
Product | class | Elementwise product of kernels, k(x, x') = prod_i k_i(x, x'). |
RBF | class | Radial basis function (squared exponential) kernel. |
RandomAdvectionRBF | class | The frozen-field RBF averaged over a Gaussian velocity. |
RandomFourierFeatures | class | Random Fourier features (Rahimi & Recht, 2007). |
RationalQuadratic | class | Rational quadratic kernel, a scale mixture of RBFs. |
Residual | class | What an approximation misses, . |
RootedTree | class | A tree with one root: every non-root node has exactly one parent. |
Scaled | class | A kernel times a scalar, k(x, x') = scale * k_0(x, x'). |
SchrodingerEigenmapProjections | class | Schrödinger eigenmap projections (SEP): linear Schrödinger eigenmaps. |
SchrodingerEigenmaps | class | Schrödinger eigenmaps (Czaja & Ehler, 2013) of the k-NN graph of X. |
Shift | class | Input warp x -> x - offset; offset is scalar or per dimension. |
SlepianFeatures | class | Features of a zonal kernel concentrated on a spherical cap. |
SphereHeat | class | Heat (diffusion, squared-exponential) kernel on the sphere. |
SphereMatern | class | Intrinsic Matérn kernel on the sphere (Borovitskiy et al. 2020). |
SphereSeries | class | A sphere kernel from any user spectrum . |
Spherical | class | Spherical covariance model, compactly supported. |
SphericalHarmonicFeatures | class | Weighted real spherical harmonics up to degree for a zonal kernel. |
Stable | class | Stable (powered exponential) covariance model. |
Stretch | class | Input warp x -> x / scale; scale is scalar or per dimension. |
Sum | class | Sum of kernels, k(x, x') = sum_i k_i(x, x'). |
TailDown | class | Tail-down covariance on a rooted tree (Ver Hoef & Peterson, 2010). |
TailUp | class | Tail-up covariance on a rooted tree (Ver Hoef & Peterson, 2010). |
Tanh | class | Hyperbolic-tangent kernel, k(x, x') = sigma^2 tanh(gamma x^T x' + c0). |
Tapered | class | A covariance multiplied by a compactly supported taper. |
TaylorStatistics | class | The sides and angle of a kernel Taylor-diagram triangle. |
TreeSites | class | Pairwise geometry of N sites on a RootedTree (host-computed). |
Variogram | class | A binned empirical semivariogram. |
Warped | class | Apply a kernel to warped inputs, k(x, x') = k_0(w(x), w(x')). |
Wendland | class | Wendland covariance model, compactly supported. |
White | class | White-noise kernel, sigma^2 delta(x, x'). |
adjacency_matrix | function | Symmetric weighted adjacency matrix of a k-NN graph. |
barrier_potential | function | Diagonal potential that is strength at indices and 0 elsewhere. |
batched_kernel_matvec | function | Compute K(X, Z) @ v in memory-efficient batches. |
batched_kernel_rmatvec | function | Compute K(X, Z)^T @ u in memory-efficient batches. |
cka | function | Centred kernel alignment, . |
combine_potentials | function | Several Schrödinger potentials as one: . |
commute_time_kernel | function | Commute-time kernel , the Laplacian’s pseudo-inverse. |
cosine_graph_kernel | function | Inverse-cosine kernel (Smola & Kondor, 2003). |
curl | function | Per-point curl of a 2-D or 3-D vector field. |
delaunay_graph | function | The edge graph of the Delaunay triangulation of X. |
derivative_inputs | function | Rows [x, i] for DerivativeIndexed: values, then partials. |
diffusion_kernel | function | Diffusion (heat) kernel (Kondor & Lafferty, 2002). |
distance_correlation_squared | function | Squared distance correlation (Székely et al., 2007), cka. |
distance_covariance_squared | function | Squared distance covariance (Székely et al., 2007), 4 * hsic. |
divergence | function | Per-point divergence . |
draw_rff_cosine_basis | function | Draw (variance, lengthscale, omega, phase, weights) for a kernel. |
edge_weights | function | Reweight a graph’s edges by a kernel on the nodes’ features. |
eigenpro_correction | function | Compute the EigenPro eigenspace correction for one SGD mini-batch. |
eigenpro_preconditioner | function | Build an EigenPro spectral preconditioner from a kernel operator. |
eigenpro_step_size | function | Return the EigenPro preconditioned step size for a batch size. |
empirical_variogram | function | Binned empirical semivariogram of y observed at X. |
energy_distance | function | Energy distance (Székely & Rizzo, 2004), 2 * mmd_squared. |
estimate_lengthscale | function | A data-driven lengthscale for an RBF-type kernel. |
evaluate_rff_cosine_paths | function | Evaluate the zero-mean RFF prior path(s) at inputs X. |
falkon_preconditioner | function | Build the Falkon preconditioner from the inducing-point kernel matrix. |
falkon_predict | function | Predict with Nyström KRR weights: . |
falkon_solve | function | Nyström kernel ridge regression weights by Falkon’s preconditioned CG. |
fastfood_features | function | FastFood feature map, . |
fastfood_frequencies | function | The dense frequency matrix that FastFood applies implicitly. |
fastfood_operator | function | FastFood approximation of the RBF Gram matrix, . |
fastfood_params | function | Draw the random structure for a FastFood RBF feature map. |
fit_variogram | function | Fit a stationary kernel plus a nugget to an empirical variogram. |
funk_hecke_coefficients | function | Per-degree spherical-harmonic spectrum of a kernel on a sphere. |
gabriel_graph | function | The Gabriel graph of X. |
gamma_to_lengthscale | function | lengthscale = 1 / sqrt(2 gamma), the inverse of lengthscale_to_gamma. |
gradient | function | Per-point gradient of a scalar field. |
graph_from_adjacency | function | The sparse graph of a dense, symmetric adjacency matrix. |
graph_from_edges | function | The sparse graph of an edge list: the seam for other graph libraries. |
graph_from_neighbors | function | The sparse, symmetric graph of a k-nearest-neighbour relation. |
graph_laplacian | function | Graph Laplacian of a symmetric adjacency matrix. |
graph_null_space | function | Orthonormal basis of the Laplacian’s null space. |
grid_graph | function | The lattice graph of an array of shape shape. |
hadamard_transform | function | Re-exported from gaussx. |
hessian | function | Per-point Hessian . |
hsic | function | Hilbert-Schmidt Independence Criterion between paired samples. |
hsic_penalty | function | The HSIC penalty operator on protected attributes. |
implicit_cross_kernel | function | Create a matrix-free rectangular cross-kernel operator. |
jacobian | function | Per-point Jacobian . |
kernel_alignment | function | Uncentred kernel alignment, . |
knn_graph | function | The k-nearest-neighbour graph of X. |
label_potential | function | Non-diagonal potential pulling together points that share a label. |
laplacian | function | Per-point Laplacian . |
laplacian_eigenmap | function | Laplacian eigenmap of a weighted graph: smallest solutions of . |
laplacian_eigpairs | function | The n smallest eigenpairs of a graph Laplacian. |
laplacian_penalty | function | The graph-smoothness penalty operator . |
lengthscale_grid | function | Log-spaced lengthscales within decades orders of magnitude of center. |
lengthscale_to_gamma | function | gamma = 1 / (2 lengthscale^2), the scikit-learn RBF parameter. |
matern_graph_kernel | function | Graph Matérn kernel (Borovitskiy et al., 2021). |
mesh_graph | function | The edge graph of a triangle mesh. |
mmd_squared | function | Squared maximum mean discrepancy between samples X and Y. |
n_components_graph | function | Number of connected components (an isolated node is one). |
nearest_neighbors | function | The n_neighbors nearest other points of every point in X. |
nystrom_kernel | function | The Nyström kernel . |
nystrom_operator | function | Nystrom low-rank kernel approximation. |
permutation_test | function | Permutation p-value for a statistic that is large under the alternative. |
point_sensitivity | function | Per-sample sensitivity . |
radius_graph | function | The graph joining points within radius of each other. |
radius_neighbors | function | The other points within radius of every point, at most max_neighbors of them. |
random_walk_kernel | function | -step random-walk kernel (Smola & Kondor, 2003). |
regularized_laplacian_kernel | function | Regularised Laplacian kernel . |
relative_neighborhood_graph | function | The relative neighbourhood graph of X. |
rff_operator | function | Random Fourier Features kernel approximation. |
schrodinger_eigenmap | function | Schrödinger eigenmap: smallest solutions of . |
select_landmarks | function | Indices into X of n_landmarks distinct landmarks. |
sensitivity | function | Per-feature sensitivity map . |
spatial_spectral_graph | function | Spatial-spectral graph for images (Cahill, Czaja & Messinger, 2014). |
spatial_spectral_potential | function | Spatial-spectral potential for images (Cahill, Czaja & Messinger, 2014). |
structure_matrix | function | The Besag (ICAR) structure matrix , optionally BYM2-scaled. |
tapered_operator | function | The tapered Gram as a sparse gaussx operator. |
taylor_statistics | function | Radii, correlation and distance for a kernel Taylor diagram. |
to_cross_operator | function | K(X1, X2) as a rectangular linear operator. |
to_functax_kernel | function | kernel as the callable functax’s kernel schemes take. |
to_operator | function | K(X, X) (+ noise * I) as a symmetric, PSD-tagged linear operator. |
vector_inputs | function | Point-major rows [x_n, i] for the vector-field kernels. |
kernellib.functional¶
| Name | Kind | What it does |
|---|---|---|
EARTH_RADIUS_KM | constant | Re-exported from builtins. |
center_cross_kernel | function | Centre a cross-kernel matrix with the training Gram’s statistics. |
center_kernel | function | Center a kernel matrix: H K H. |
centering_operator | function | Centering matrix H = I - (1/n) \mathbf{1}\mathbf{1}^T. |
chordal_distance | function | Pairwise chordal (straight-line, through the sphere) distance. |
cka | function | Centered kernel alignment. |
constant_kernel | function | Constant kernel. |
cosine_kernel | function | Cosine kernel. |
cubic_kernel | function | Cubic covariance model, compactly supported on r < 1. |
distance_kernel | function | Distance-induced kernel (Sejdinovic et al., 2013). |
generalized_cauchy_kernel | function | Generalized Cauchy covariance model (Gneiting & Schlather 2004). |
graph_heat_spectrum | function | Heat-kernel spectrum . |
graph_matern_spectrum | function | Graph Matérn spectrum . |
great_circle_distance | function | Pairwise great-circle distance between (lon, lat) points. |
hole_effect_kernel | function | Hole-effect (cardinal sine) covariance model. |
hsic | function | Hilbert-Schmidt Independence Criterion from two kernel matrices. |
kernel_add | function | Pointwise sum of two already-evaluated Gram matrices. |
kernel_mul | function | Pointwise (Hadamard) product of two already-evaluated Gram matrices. |
linear_kernel | function | Linear kernel. |
lonlat_to_unit | function | Unit vectors in R³ for (lon, lat) points. |
matern_kernel | function | Matern kernel with closed-form nu in {1/2, 3/2, 5/2}. |
mmd_squared | function | Biased squared Maximum Mean Discrepancy. |
pentaspherical_kernel | function | Pentaspherical covariance model, compactly supported on r < 1. |
periodic_kernel | function | Periodic (MacKay) kernel. |
polynomial_kernel | function | Polynomial kernel. |
rational_quadratic_kernel | function | Rational quadratic kernel. |
rbf_kernel | function | Radial basis function (squared exponential) kernel. |
spherical_kernel | function | Spherical covariance model, compactly supported on r < 1. |
stable_kernel | function | Stable (powered exponential) covariance model. |
stable_rbf_kernel | function | RBF (squared exponential) kernel with mixed-precision stability. |
tanh_kernel | function | Hyperbolic-tangent (sigmoid) kernel. |
wendland_kernel | function | Wendland covariance model, compactly supported on r < 1. |
white_kernel | function | White-noise kernel. |
Upstream: geonnax¶
Deterministic Equinox network cores and encoders. pyrox-nn wraps a geonnax core and swaps its parameters for sites.
geonnax¶
| Name | Kind | What it does |
|---|---|---|
AntiAliasedActivation | class | A pointwise nonlinearity between band-limited function spaces. |
Attention | class | Pre-norm multi-head self-attention with cosine (QK-normalised) similarity. |
BasisSpectralConv | class | Spectral convolution in a precomputed basis: per-mode channel mixing. |
BasisTransform | class | Frozen analysis and synthesis pair for a precomputed basis. |
Block | class | Conv, GroupNorm, SiLU: the residual-block primitive. |
CNO | class | Convolutional Neural Operator: lift → U-Net of band-limited blocks → project. |
CNOBlock | class | Convolution then band-limited activation: the CNO I, D and U blocks. |
CNOResBlock | class | The CNO residual (R) block, v ↦ v + K₂ Σ K₁ v. |
CPTensor | class | Canonical-Polyadic (CP / PARAFAC) factorization. |
Cartesian3DEncoder | class | Lift a single longitude and latitude onto the unit sphere S². |
ConditionedINR | class | Wrap an inner network’s per-layer activations with conditioners. |
ConvGRUCell | class | A convolutional GRU cell: one step of the GRU with convolutions. |
ConvLSTMCell | class | A convolutional LSTM cell: one step of the LSTM with convolutions. |
ConvLSTMState | class | The state of a ConvLSTMCell: the hidden field h and the cell field c. |
ConvNeXtBlock | class | ConvNeXt-V2 block: depthwise conv, norm, MLP with GRN (Woo et al., 2023). |
ConvolutionalNeuralOperator | class | Convolutional Neural Operator: lift → U-Net of band-limited blocks → project. |
CyclicEncoder | class | Encode a single periodic input as concatenated cosine and sine features. |
DeepVSSGPCore | class | Deterministic deep RFF spectral core. |
Deg2Rad | class | Element-wise conversion from degrees to radians. |
DenseRank1 | class | Rank-1 ensemble dense layer, the deterministic BatchEnsemble core. |
DenseTensor | class | A full, un-factorised tensor T. |
DomainPadding | class | Zero-pad spatial axes by a fraction of their size, then crop back. |
Downsample | class | Factor-2 downsample by space-to-depth, then a 1×1 convolution. |
FFTConv | class | A “same” convolution with a full kernel, computed as a product of spectra. |
FNO | class | Fourier Neural Operator: lifting, Fourier blocks, then projection. |
FNOBlock | class | One Fourier layer: a spectral convolution plus a pointwise skip. |
FourierFilter | class | Single Fourier filter, g(x) = sin(Ω x + φ). |
FourierNet | class | Multiplicative Fourier Filter Network (Fathony et al., 2021). |
FourierNeuralOperator | class | Fourier Neural Operator: lifting, Fourier blocks, then projection. |
GaborFilter | class | Single Gabor filter, a sinusoid under a Gaussian envelope. |
GaborNet | class | Multiplicative Gabor Filter Network (Fathony et al., 2021). |
GaussianFourierEncoder | class | Gaussian random Fourier-feature positional encoding (Tancik et al., 2020). |
GaussianRegressionHead | class | Heteroscedastic Gaussian regression head (mean and log-scale). |
GeneratedSiren | class | Wrapper around a SIREN whose layers consume generated weights. |
GeoContextEncoder | class | Encode geoscience metadata into a single context vector. |
GeoFNO | class | Geo-FNO: a Fourier neural operator on per-sample point clouds. |
GlobalResponseNorm | class | Global Response Normalization (Woo et al., 2023, “ConvNeXt-V2”). |
HeteroscedasticHead | class | Shared state and init for the FA-noise heteroscedastic layers. |
HybridSphericalSlepianEncoder | class | Concatenate low-bandwidth global SHs with local Slepian cap modes. |
HyperSIREN | function | Build the NIF-style ShapeNet and ParameterNet composite. |
LNO | class | Local Neural Operator: pad → local core → crop, marched with jax.lax.scan. |
LaplaceRandomFeatureCovariance | class | Laplace-approximation precision for an SNGP output head. |
LayerNormEnsemble | class | Per-ensemble-member LayerNorm, the deterministic core. |
LearnedDeformation | class | A learned chart from the physical domain onto the latent torus (Geo-FNO). |
LinearAttention | class | Pre-norm linear attention, linear in the number of spatial positions. |
LinearChainCRF | class | Deterministic linear-chain CRF: forward algorithm plus Viterbi decoding. |
LocalConv | class | A locally connected layer: a convolution whose kernel differs at every location. |
LocalNeuralOperator | class | Local Neural Operator: pad → local core → crop, marched with jax.lax.scan. |
LonLatScale | class | Affine-rescale a single longitude and latitude pair into [-1, 1]. |
MCSigmoidDenseFA | class | Heteroscedastic multi-label output layer (FA noise and sigmoid). |
MCSoftmaxDenseFA | class | Heteroscedastic multi-class output layer (FA noise and softmax). |
MSWT | class | Multi-Scale Wavelet Transformer operator (Wang et al., 2026). |
MSWTBlock | class | Pre-norm wavelet-attention block: an attention residual, then a feed-forward one. |
ManifoldNO | class | Manifold neural operator: lifting, basis blocks and projection. |
ManifoldNOBlock | class | One manifold-operator layer: a basis spectral conv plus a pointwise skip. |
MixtureOfGaussiansDenseHead | class | Deterministic mixture-density-network output head. |
MultiHeadAttentionBE | class | Multi-head attention with BatchEnsemble rank-1 projections. |
MultiScaleSIREN | class | Parallel frequency-banded SIRENs summed at the readout. |
MultiScaleWaveletTransformer | class | Multi-Scale Wavelet Transformer operator (Wang et al., 2026). |
NCPContinuousPerturb | class | Input perturbation for the Noise Contrastive Prior pattern. |
NestedResidualUNet | class | A small residual U-Net used as one stage block (Qin et al., 2020, “U²-Net”). |
NeuralFieldMLP | class | The BayesNF spatiotemporal network as a deterministic equinox.Module. |
OrthogonalRandomFeatures | class | Orthogonal Random Features (Yu et al., 2016), a variance-reduced RFF. |
RandomFeatureGaussianProcess | class | SNGP output layer (Liu et al., 2020), deterministic core. |
Rank1ProjInit | class | One rank-1 BatchEnsemble projection, bundled as a single pytree leaf. |
ResnetBlock | class | Two Blocks with squeeze-excitation and a residual skip. |
SFNO | class | Spherical Fourier Neural Operator: lifting, spherical blocks, then projection. |
SIREN | class | Multi-layer sinusoidal representation network (Sitzmann et al., NeurIPS 2020). |
SeparableINR | class | A rank-r separable neural field over A input axes. |
SirenDense | class | Sine-activated dense layer, the single primitive of a SIREN. |
SirenLayerSpec | class | Static per-layer metadata shared by deterministic and Bayesian SIRENs. |
SirenLayerType | function | Re-exported from typing. |
SlepianEncoder | class | Deterministic Slepian-cap positional encoder on S². |
SpectralConv | class | Fourier spectral convolution over num_spatial_dims = len(n_modes) axes. |
SpectralNormalization | class | Wrap a linear layer so that it is approximately c-Lipschitz. |
SphericalFNOBlock | class | One spherical Fourier layer: a spherical spectral convolution plus a skip. |
SphericalHarmonicEncoder | class | Real spherical-harmonic features on the unit 2-sphere for a single point. |
SphericalSpectralConv | class | Mix channels with one matrix per spherical-harmonic degree. |
SphericalWaveletConv | class | Mix channels with one matrix per needlet scale. |
SqueezeExcitation | class | Squeeze-and-Excitation channel gating (Hu et al., 2018). |
Stage | class | One encoder or decoder stage: a leaf block, then an optional nested U-Net. |
StandardizedConv | class | Convolution with optional on-the-fly weight standardisation. |
TTTensor | class | Tensor-Train (Matrix-Product) factorization. |
TuckerTensor | class | Tucker factorization: a small core contracted with per-mode factor matrices. |
UNet | class | Dimension-flexible U-Net with modern blocks, attention and nested stages. |
Upsample | class | Factor-2 upsample by pixel shuffle: a 1×1 convolution, then depth-to-space. |
WNO | class | Wavelet Neural Operator: lifting, wavelet blocks, then projection. |
WNOBlock | class | One wavelet layer: a wavelet convolution plus a pointwise skip. |
WaveletAttention | class | Self-attention performed inside the wavelet domain (Wang et al., 2026). |
WaveletConv | class | Wavelet-domain channel mixing, the wavelet analogue of SpectralConv. |
WaveletNeuralOperator | class | Wavelet Neural Operator: lifting, wavelet blocks, then projection. |
WindowedAttention | class | Swin-style windowed multi-head self-attention with cosine similarity. |
XUNet | class | Dimension-flexible U-Net with modern blocks, attention and nested stages. |
apply_rank1_proj | function | Apply the per-member rank-1 projection yᵢ = ((x ⊙ sᵢ) W) ⊙ rᵢ + bᵢ. |
band_limited_resize | function | Resample a periodic field onto a new grid by Fourier truncation or padding. |
build_siren_specs | function | Produce the per-layer specs of a SIREN: first, hidden layers, then last. |
cno_receptive_radius | function | Effective receptive radius, in grid points, of a CNO on its input grid. |
hetero_noisy_logits | function | Sample heteroscedastic logits for one example. |
init_factorized_tensor | function | Construct a factorized tensor of the requested kind. |
init_rank1_proj | function | Draw a Glorot kernel, per-member rank-1 vectors and zero biases. |
log_spaced_omegas | function | Return num_scales log-spaced frequencies spanning the closed band. |
mfn_forward | function | Pure-JAX MFN forward pass for user-supplied filter and linear callables. |
orthogonal_blocks | function | Build the ORF frequency matrix W = [Q₁S₁, …, Q_K S_K]. |
scan_cell | function | Run a recurrent cell over the leading time axis with jax.lax.scan. |
siren_W_limit | function | Return 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¶
| Name | Kind | What it does |
|---|---|---|
fourier_features | function | Cosines and sines of a coordinate at dyadic frequencies. |
gaussian_window_features | function | Gaussian windows in time, the temporal analogue of an RBF column. |
rff_cosine_forward | function | Random Fourier features with random phases, one cosine per frequency. |
rff_forward | function | Random Fourier features at given frequencies, cosines then sines. |
seasonal_features | function | Cosines and sines of a time at the harmonics of given periods. |
seasonal_frequencies | function | The frequencies of the seasonal features, as Python lists. |
functax.basis.fourier¶
| Name | Kind | What it does |
|---|---|---|
fourier_basis | function | The tensor-product Laplacian eigenpairs on the box [−L, L]^D. |
fourier_basis_1d | function | The first num_basis Laplacian eigenfunctions on [−L, L]. |
fourier_eigenvalues | function | The eigenvalues of fourier_basis alone, λ_{j₁, …, j_D} = ∑_d λ_{j_d}. |
fourier_eigenvalues_1d | function | The eigenvalues λ_j = (jπ/(2L))² of fourier_basis_1d, j = 1, …, num_basis. |
functax.basis.sphere¶
| Name | Kind | What it does |
|---|---|---|
harmonic_degrees | function | The degree ℓ of each column of real_spherical_harmonics. |
needlet_basis | function | Spherical needlets at the scales j = 0, …, j_max, plus the constant. |
needlet_window | function | The needlet window b: smooth, supported in [1/B, B], a partition of unity. |
real_spherical_harmonics | function | The real spherical harmonics Y_ℓm up to degree l_max. |
shell_basis | function | Spherical harmonics times radial polynomials on a spherical shell. |
vector_spherical_harmonics | function | The gradient and toroidal vector spherical harmonics for 1 ≤ ℓ ≤ ℓ_max. |
functax.basis.slepian¶
| Name | Kind | What it does |
|---|---|---|
SlepianBasis | class | The Slepian functions of a general region, in the real harmonic basis. |
SlepianCapBasis | class | A Slepian cap eigendecomposition in the real spherical-harmonic basis. |
shannon_number | function | The Shannon number N = (ℓ_max + 1)² A / (4π), the count of concentrated modes. |
slepian_cap_basis | function | A Slepian basis for an axisymmetric spherical cap. |
slepian_cap_eigh_per_m | function | The cap Slepian eigenproblem D c = λ c, solved one azimuthal block at a time. |
slepian_concentration_matrix | function | The concentration matrix D_ij = ∫_cap Y_i Y_j dΩ of a north-pole cap. |
slepian_polar_gap_basis | function | The Slepian functions of the band between two polar caps (a polar gap). |
slepian_region_basis | function | The Slepian functions of a region given by a quadrature over it. |
spherical_polygon_mask | function | Which points lie inside a spherical polygon. |
functax.basis.local¶
| Name | Kind | What it does |
|---|---|---|
gabor_frame | function | A bank of Gabor atoms, Gaussian envelopes times oscillations. |
gabor_frame_grid | function | A dyadic radial Gabor frame over a box. |
rbf_basis | function | A placeable radial basis at given centres and widths. |
spherical_rbf_basis | function | A placeable radial basis on the unit sphere, in geodesic distance. |
wavelet_basis_1d | function | The orthonormal 1-D DWT synthesis basis on a periodic grid of length n. |
wavelet_basis_2d | function | The separable orthonormal 2-D DWT basis, the Kronecker product Φ_y ⊗ Φ_x. |
wendland_c2 | function | The Wendland C² kernel ψ(r) = (1 − r)₊⁴ (4r + 1). |
wendland_c4 | function | The Wendland C⁴ kernel ψ(r) = (1 − r)₊⁶ (35r² + 18r + 3)/3. |
functax.basis.polynomial¶
| Name | Kind | What it does |
|---|---|---|
associated_legendre | function | The associated Legendre functions P_ℓᵐ(t) for 0 ≤ m ≤ ℓ ≤ ℓ_max. |
associated_legendre_indices | function | The (ℓ, m) of each column of associated_legendre. |
legendre_polynomials | function | The Legendre polynomials P₀(t), …, P_{ℓ_max}(t). |
legendre_series | function | The Legendre series f(x) = ∑_ℓ c_ℓ P_ℓ(x), ℓ = 0, …, ℓ_max, elementwise. |
functax.basis.vector¶
| Name | Kind | What it does |
|---|---|---|
curlfree_basis | function | Curl-free vector atoms, the gradients of the box Laplacian eigenfunctions. |
divfree_basis | function | Divergence-free vector atoms, the skew gradients of box stream functions. |
functax.basis.eigen¶
| Name | Kind | What it does |
|---|---|---|
cotangent_laplacian_eigpairs | function | The smallest eigenpairs of the cotangent Laplace–Beltrami operator. |
eof_basis | function | The leading n_modes empirical orthogonal functions of a data matrix. |
graph_laplacian_eigpairs | function | The num_basis smallest Laplacian eigenpairs of an undirected graph. |
functax.geometry¶
| Name | Kind | What it does |
|---|---|---|
AffineGrid | class | A regular 2-D grid given by an affine transform and a shape. |
Axis | class | One strictly monotone coordinate axis, optionally periodic or in time. |
CurvilinearGrid | class | A 2-D grid whose node coordinates are given per node, such as a swath. |
Metric | constant | Re-exported from typing. |
Points | class | Scattered sites, with the metric their distances use. |
RectilinearGrid | class | A tensor-product grid with one Axis per dimension. |
cartesian_to_tangent | function | 3-D vectors w to their east and north components (w · e_east, w · e_north). |
chebyshev_nodes | function | The Chebyshev nodes of degree N on [a, b], from b down to a. |
chord_distance | function | The straight-line distance through the sphere between every pair. |
ecef_to_lonlat | function | Earth-centred, Earth-fixed coordinates to geodetic (λ, φ) and height. |
enu_basis | function | The local east, north and up unit vectors at each point. |
fibonacci_sphere | function | The Fibonacci lattice: n near-uniform points on the unit sphere. |
from_pixel | function | Map fractional pixel (row, col) to coordinates (x, y): the inverse of to_pixel. |
gauss_legendre_grid | function | The Gauss–Legendre grid on the sphere, with its quadrature weights. |
geodesic_distance | function | The great-circle distance between every pair. |
healpix_grid | function | HEALPix pixel centres, each weighted by the equal pixel area. |
icosphere | function | The subdivided icosahedron, a quasi-uniform triangle mesh of the sphere. |
latlon_grid | function | The regular cell-centred lon/lat grid, weighted by exact cell areas. |
local_tangent_plane | function | Project points onto the tangent plane at origin, as (east, north). |
lonlat_to_ecef | function | Geodetic (λ, φ) and height to Earth-centred, Earth-fixed coordinates. |
lonlat_to_unit | function | Lift longitude and latitude onto the unit sphere. |
mesh_vertex_areas | function | The lumped (barycentric) vertex areas of a triangle mesh. |
pairwise_distance | function | The distance from every source to every target, in their shared metric. |
pixel_centres | function | The x and y of every pixel centre of a grid, each of shape (rows, cols). |
rotation_to_pole | function | The rotation Q with Q e_up(centre) = (0, 0, 1). |
slice_transform | function | The transform of the slice [row0::row_step, col0::col_step] of a raster. |
spherical_polygon_area | function | The signed area of a spherical polygon with great-circle edges. |
tangent_to_cartesian | function | East and north components (u, v) to the tangent vector u e_east + v e_north. |
to_pixel | function | Map coordinates (x, y) to fractional pixel (row, col), centres at integers. |
unit_to_lonlat | function | Longitude and latitude of vectors on (or off) the unit sphere. |
window | function | The row and column slices of the pixels that cover bounds. |
functax.interp¶
| Name | Kind | What it does |
|---|---|---|
Akima | class | Akima’s local cubic, as SciPy’s Akima1DInterpolator(method="akima"). |
BSpline | class | A B-spline of order k on every axis: (k + 1)ᴰ taps, after the prefilter. |
BSplineBasis | class | The centred B-spline of order k (degree k): k + 1 taps per axis. |
BandedPrefilter | class | c = B⁻¹ y per axis: the B-spline prefilter, separable on a grid. |
Basis | class | A local basis on one axis: S relative taps, and weights from the offsets. |
Binning | class | Aggregate scattered samples into grid cells: Hᵀ y, normalised for the mean. |
BinningPlan | class | A plan from N samples to M cells: the sums, means or counts per cell. |
BrownianBridge | class | The Brownian bridge between the knots of one axis, cell by cell. |
Chebyshev | class | The Chebyshev series of samples on Chebyshev nodes, read at arbitrary points. |
ChebyshevFit | class | c = Π C y: the first D_c Chebyshev coefficients of samples on Chebyshev nodes. |
ChebyshevInterpolant | class | A fitted Chebyshev series f̂(x) = ∑ₖ cₖ Tₖ(ξ(x)), read at targets by clenshaw. |
ComposedPlan | class | outer @ inner: H_outer H_inner 𝒮_inner, one plan with the product stencil. |
Conservative | class | First-order conservative remapping: each target cell’s area-weighted mean. |
Cubic | class | Keys cubic convolution on every axis: 4ᴰ taps per target, no prefilter. |
CubicBasis | class | Keys cubic convolution: taps i − 1 … i + 2, weights W(1 + t) … W(2 − t). |
CubicSpline | class | The interpolating C² cubic spline, as scipy.interpolate.CubicSpline. |
Delaunay | class | Linear interpolation on a triangulation of the sources: D + 1 taps per target. |
DerivativePlan | class | A plan whose read-out holds basis derivatives: ∂ᵐf̂/∂x_dᵐ at the targets. |
Fit | class | c = 𝒮(y), applied once per field before the read-out. |
Fourier | class | Band-limited Fourier resampling from N to M nodes of one periodic axis. |
FourierReadout | class | H y = (M/N) Re(F_M⁻¹ S F_N y), band-limited resampling by two FFTs. |
GaussianPlan | class | A plan read as a Gaussian posterior: f(X_*) ∣ y ~ 𝒩(H 𝒮(y), Σ_{*∣y}). |
HermiteFit | class | [y; d] from y: the values in increasing-knot order and their slopes. |
HermiteGeometry | class | What a 1-D series plan’s Hermite read-out was built from. |
Identity | class | The fit of every local scheme: c = y. |
Interpolant | class | A fitted field f̂(x) = ∑ₛ wₛ(t(x)) c_{iₛ(x)}, read at any targets. |
InverseDistance | class | Inverse-distance weighting of the Q nearest scattered sources. |
Kernel | class | k(x, x′): the (M, N) cross-kernel of M targets and N sources. |
KernelCovariance | class | Σ_{∣y} = K_* − H A⁻¹ Hᵀ, the posterior covariance of a kernel fit. |
KernelReadout | class | The dense read-out of a kernel scheme: f̂(X_*) = K_X c + P_ b. |
KernelSolve | class | [c; b] = A⁻¹ [y; 0], the saddle-point system of a kernel and a tail. |
Kriging | class | Kriging: the best linear unbiased predictor under a covariance k and a drift. |
Linear | class | Linear on every axis: 2ᴰ taps per target, weights ∏_d (1 − t_d or t_d). |
LinearBasis | class | Linear: taps i and i + 1, with weights 1 − t and t. |
LocalGeometry | class | What a local plan was built from: the source, the target coordinates, the bases. |
LocalScheme | class | A scheme with one local basis per axis and the identity fit. |
Nearest | class | Nearest neighbour on every axis: one tap per target, weight 1. |
NearestBasis | class | Nearest neighbour: one tap, the closer of i and i + 1, with weight 1. |
NonlinearDerivativePlan | class | ∂ᵐf̂/∂xᵐ of a nonlinear series plan: it reads, but has no fixed operator. |
NonlinearPlan | class | A plan whose fit depends on y: no fixed operator or adjoint, but linearize. |
Pchip | class | Monotone piecewise cubic Hermite (Fritsch-Carlson), as SciPy’s PCHIP. |
Plan | class | f̂(X_*) = H 𝒮(y), fitted once, applied to many fields. |
Policies | class | Outside the domain, at missing samples, and at the edges. |
Polyharmonic | class | The polyharmonic spline φ(r) = ±rᵖ for odd p, ±rᵖ log r for even p. |
PosteriorCovariance | class | Σ_{*∣y}, the (M, M) posterior covariance of the field at M targets. |
RBF | class | Radial basis function interpolation: f̂(x) = ∑ⱼ cⱼ k(x, xⱼ) + ∑ₚ bₚ pₚ(x). |
RadialKernel | class | k(x, x′) = φ(‖x − x′‖), Euclidean in the coordinates as given. |
ReadGeometry | class | What a plan’s stencil was built from, so Plan.derivative can rebuild it. |
Readout | class | c ↦ f̂(X_*): the read-out of a plan, from coefficients to target values. |
Scheme | class | An interpolation scheme: configuration, frozen into a Plan by plan. |
SeriesInterpolant | class | A 1-D series field f̂ read at targets chosen inside the trace. |
SeriesScheme | class | A scheme on one axis with a cubic Hermite read-out and its own slopes. |
Steffen | class | Steffen’s monotone cubic: no overshoot between knots, by construction. |
Stencil | class | A sparse read-out H: row k reads S source values at flat indices. |
Tensor | class | One local scheme per source axis, as one tensor stencil. |
TransposedStencil | class | f̂ = diag(w) Hᵀ y: a sampling stencil H used backwards, scaled per cell. |
Wendland | class | The compact Wendland kernel φ(r) = ψ(r/ρ), zero for r ≥ ρ. |
WindowedPlan | class | plan[window]: the rows of a grid target inside a window, sources unchanged. |
bspline | function | The centred B-spline βᵏ of degree k at x. |
check_outside | function | Enforce outside="raise" on the host; no-op for every other policy. |
clenshaw | function | The Chebyshev series f(x) = ∑ₖ cₖ Tₖ(ξ(x)) by Clenshaw’s recurrence. |
compose | function | H = H_outer H_inner: apply inner first, then outer, as one stencil. |
index_positions | function | The fractional index position u of each target, so node j sits at u = j. |
locate | function | The cell index i, the offset t ∈ [0, 1) and the inside flag of each target. |
locate_curvilinear | function | The cell (i, j), the offset (s, t) and the inside flag of targets on a swath. |
overlap_weights_1d | function | The (M, N) overlap lengths |cⱼ ∩ Cᵢ| of every target and source cell. |
plan_key | function | sha256 hex of the scheme, the policies and both geometries’ bytes. |
remap_taps | function | Bring tap indices back onto [0, N − 1] by a boundary rule. |
spline_poles | function | The poles zₚ of the order-k B-spline prefilter, as in scipy.ndimage. |
tensor_stencil | function | H = H₁ ⊗ … ⊗ H_D: one local basis per source axis, read at the targets. |