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

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

Capability index: GeoML

Layers: GeoStack · GeoNumerics · GeoML · GeoModels.

Every public name in the libraries geostack builds on, each listed once under the shortest module path that exports it, with the first sentence of its docstring. Search this page before writing a loader, a model, a training step or a helper in a script or a notebook: if what you need is here, use it; if it is almost here, extend it where it lives. Regenerate with make capabilities after changing a public API (tests/test_capabilities.py checks it is current).

This page is the GeoML layer. It may import GeoNumerics, GeoStack.

Listed at geonnax 0.2.0, kernellib 0.0.23, filterax 0.0.8, vardax 0.4.0, gauss-flows-maps 0.3.0, gauss-flows-models 0.3.0, pyrox 0.3.2, pyrox-gp 0.3.3, pyrox-lgm 0.1.6, pyrox-nn 0.2.2, pyrox-ssm 0.2.3, pyrox-gauss 0.1.1, pyrox-xtreme 0.0.2, manipy-jax 0.1.0.

Upstream: geonnax

Basis functions, neural layers and coordinate transforms in Equinox.

geonnax

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

Upstream: kernellib

Covariance kernels and scalable kernel methods on gaussx.

kernellib

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

Upstream: filterax

Differentiable ensemble Kalman filters and smoothers.

Upstream: vardax

Variational data assimilation: BLUE/OI, 3D-Var, 4D-Var and kin.

vardax

NameKindWhat it does
AmortizedConfigclassConfiguration of an AmortizedPosterior q(x | y; ν).
AmortizedPosteriorclassAmortized variational posterior q(x | y; ν).
AnalysisStepclassRe-exported from pipekit_cycle.
AveragingKernelclassAveraging-kernel observation operator of an L2 retrieval.
Batch1DclassBatch of 1-D spatiotemporal data.
Batch2DclassBatch of 2-D spatiotemporal data.
Batch2DMultivarclassBatch of 2-D multivariate spatiotemporal data.
BilinAEPrior1DclassBilinear autoencoder prior for 1-D data.
BilinAEPrior2DclassBilinear autoencoder prior for 2-D data.
BilinAEPrior2DMultivarclassBilinear autoencoder prior for 2-D multivariate data.
CallableObsclassObservation operator h from any differentiable JAX function.
CompositeBasisclassConcatenate several reduced bases into one control vector.
ConditionalFlowHeadclassConditional normalising flow head (stub).
ConfigurationErrorclassA hyperparameter or constructor argument has an invalid value.
ConvAEPrior1DclassConvolutional autoencoder prior for 1-D spatially-structured data.
ConvLSTMGradMod1Dclass1-D ConvLSTM gradient modulator.
ConvLSTMGradMod2Dclass2-D ConvLSTM gradient modulator.
CostFunctionclassVariational cost function over the state.
DataErrorclassA dataset cannot be processed (no observed values, too few samples).
DualThreeDVarclass3D variational analysis of a single time, solved in observation space (PSAS).
DynIncrementsclassOne-step-increment dynamical prior.
DynTrajectoryclassFull-rollout dynamical prior.
DynamicalPriorclassBase class for ODE-based dynamical priors.
EnsembleCovarianceclassSample-covariance posterior from an ensemble ℰ of analyses.
FieldPointObsclassCallable field evaluated at scattered points.
ForwardModelclassRe-exported from pipekit_cycle.
FourDVarNet1DclassEnd-to-end 4DVarNet model for 1-D spatiotemporal reconstruction.
FourDVarNet2DclassEnd-to-end 4DVarNet model for 2-D spatiotemporal reconstruction.
GaussNewtonHessianclassGauss–Newton posterior at the analysis, with a Krylov budget.
GaussianMarkLikelihoodclassSerialise a Gaussian posterior into a mark-likelihood dict.
GradModulatorclassLearned gradient modulator for the FourDVarNet inner solver.
GridErrorclassGrid axes or coordinates are malformed (too few points, not increasing).
GridPointObsclassGridded state or trajectory at scattered, time-stamped points.
IdentityObsEncoderclassConcatenate input and mask into a flat context vector.
IdentityPriorclassTrivial identity prior: x̂ = g_ae(x; θ) = x.
ImplicitAdjointclassRe-exported from optimistix.
IncrementalConfigclassSolver switches of IncrementalFourDVar, and its deprecated budget.
IncrementalFourDVarclassOperational incremental 4D-Var of an assimilation window.
InputTypeErrorclassAn argument has the wrong type.
InstrumentRegistryclassKeyed lookup of InstrumentSpec by instrument_id.
InstrumentSpecclassOne instrument’s operator hᵢ, quality mask mᵢ, covariance Σ_ε,i and name.
InterpObsclassSparse bilinear interpolation from a 2-D grid to scattered observations.
KStepAdjointclassDeprecated alias of argminax.adjoint.KStep; use that name instead.
L63PriorclassLearned prior for the Lorenz-63 system.
L96PriorclassLearned prior for the Lorenz-96 system.
LSTMState1DclassHidden state for a 1-D ConvLSTM gradient modulator.
LSTMState2DclassHidden state for a 2-D ConvLSTM gradient modulator.
LaplaceCovarianceclassLaplace approximation of the posterior at the analysis.
LinearBasisclassGeneric linear reduced basis with a diagonal prior over the coefficients.
LinearObsclassLinear observation operator H held as a lineax operator.
LinearParameterizationclassAdapter from a ReducedBasis to a parameterization.
Lorenz63classLorenz-63 vector field as an Equinox module.
Lorenz96classLorenz-96 vector field as an Equinox module.
MLPAEPrior1DclassMLP autoencoder prior for 1-D data.
MLPObsEncoderclassMLP encoder from the flat (input, mask) to the context c.
MaskedIdentityclassIdentity observation operator with an optional element-wise mask m.
MinimiseResultclassOutcome of a minimisation: the optimum θ⋆ and its diagnostics.
MinimiserclassMinimises a cost cost_fn(x, batch) from an initial guess.
MissingInputErrorclassA required input (a key, a target, a covariance) was not given.
ModelErrorBasisclassSeparable space-time basis of the model error, with a Kronecker prior.
MultiInstrumentFusionclassCompose per-instrument operators at the likelihood level.
NeuralFieldParameterizationclassA coordinate network evaluated on the grid as the state.
OEResultclassThe output of optimal_estimation.
ObservationErrorclassObservations are inconsistent with the model or the assimilation window.
ObservationOperatorclassRe-exported from pipekit_cycle.
OneStepAdjointclassDeprecated alias of argminax.adjoint.OneStep; use that name instead.
OptaxMinimiserclassFirst-order minimisation with an optax optimiser.
OptimalInterpolationclassBest linear unbiased estimate: the linear-Gaussian analysis in closed form.
OptimistixMinimiserclassAn optimistix minimiser behind the Minimiser protocol.
PointObsBatchclassScattered point observations, padded to a fixed count.
PosteriorclassPosterior of an analysis, with optional samples and provenance.
PosteriorAdapterclassTurns an analysis output into a Posterior container.
PriorclassPrior model: maps a state to its regularised reconstruction.
RecursiveCheckpointAdjointclassRe-exported from optimistix.
ReducedBasisclassReduced-basis control-vector operator.
ReducedBasisFourDVarclassStrong-constraint 4D-Var with the control in a reduced basis.
RegressionHeadclassGaussian regression head with diagonal covariance.
ResidualPenaltyclassPDE residual of a continuous field at collocation points, as a cost.
ScoreDiffusionHeadclassScore-based diffusion head (stub).
ShapeErrorclassAn array or batch has a shape the operation cannot use.
SoftBoundedForwardclassForwardModel adapter that softly confines states to a box.
SolverState1DclassCarry of the 1-D solver loop: iterate, ConvLSTM carry and iteration index.
SolverState2DclassCarry of the 2-D solver loop: iterate, ConvLSTM carry and iteration index.
SpaceTimeFieldResultclassA fitted space-time field and its minimisation diagnostics.
SpaceTimeFieldVarclassNeural-field 4D-Var: fit one continuous field x(t, s; θ) to a whole window.
StateParameterizationclassControl-to-state map with its own penalty.
StrongFourDVarclassStrong-constraint 4D-Var analysis of an assimilation window.
SupportsForwardAdjointclassA ForwardModel whose integrator can take a diffrax adjoint.
TemporalPriorclassTime-dependent prior: dynamics-aware regularisation over a window.
ThreeDVarclass3D variational analysis of a single time.
UnsupportedInputErrorclassThe input is valid in general but this operation does not support it.
VarDACyclefunctionBuild a pipekit_cycle.DACycle from a vardax model.
VarSmootherCyclefunctionBuild a pipekit_cycle.SmootherCycle from a vardax model.
VardaxErrorclassBase class for every error vardax raises on purpose.
WeakFourDVarclassWeak-constraint 4D-Var analysis of an assimilation window.
amortized_nll_loss_fnfunctionNegative log-likelihood for amortized inference.
amortized_train_stepfunctionSingle training step for AmortizedPosterior.
assert_adjoint_calibratedfunctionRandom-vector probe of the Jacobian agreement at y.
assert_posterior_agreementfunctionCheck that the fast posterior mean lies near the oracle’s, per component.
background_costfunctionBackground cost: the mean square of the departure from the first guess.
composite_basisfunctionBuild a CompositeBasis from a sequence of ReducedBasis components.
decomposed_lossfunctionDecomposed variational loss: the weighted terms alongside their sum.
eof_basisfunctionData-driven EOF (PCA) reduced basis from a sample matrix.
eval_stepfunctionCompute the evaluation loss for a single batch (no gradient).
fourier_basisfunctionLaplacian-eigenfunction reduced basis on a box, Dirichlet or HSGP.
fp_solver_step_1dfunctionPerform a single 1-D fixed-point projection step.
init_solver_state_1dfunctionInitialise a 1-D solver state from a batch.
init_solver_state_2dfunctionInitialise a 2-D solver state from a batch.
interp_obs_from_coordsfunctionBuild an InterpObs from grid axis arrays and observation locations.
linear_basisfunctionBuild a LinearBasis from an arbitrary precomputed design matrix.
obs_cost_1dfunctionObservation cost for 1-D data: the masked mean-squared error.
obs_cost_2dfunctionObservation cost for 2-D data: the masked mean-squared error.
one_step_solve_4dvarnet_1dfunctionSolve 4DVarNet-1D using k-step differentiation (Bolte et al., 2023).
one_step_solve_4dvarnet_2dfunctionSolve 4DVarNet-2D using k-step differentiation (Bolte et al., 2023).
optimal_estimationfunctionRodgers optimal estimation of x from y = h(x) + ε.
plot_l96_gridfunctionHovmöller-style image of Lorenz-96 states over time.
plot_l96_trajectoriesfunctionLine plot of selected Lorenz-96 variables over time.
plot_reconstruction_comparisonfunctionSide-by-side comparison of target, masked input, and reconstruction.
point_obs_costfunctionMasked, σ-weighted observation cost of a point batch.
prior_costfunctionPrior cost of a learned autoencoder: the reconstruction mean square.
rbf_basisfunctionRadial-basis reduced basis of Gaussian or Wendland atoms.
reconstruction_lossfunctionMean-squared reconstruction loss.
simulate_lorenz63functionSimulate the Lorenz-63 system and return the state trajectory.
simulate_lorenz96functionSimulate the Lorenz-96 system and return the state trajectory.
simulation_based_calibrationfunctionRank of each state component among its posterior samples (Talts et al. 2018).
solve_4dvarnet_1dfunctionRun the full 1-D 4DVarNet solver for n_steps iterations.
solve_4dvarnet_1d_fixedpointfunctionRun n_fp_steps fixed-point projection steps using jax.lax.scan.
solve_4dvarnet_2dfunctionRun the full 2-D 4DVarNet solver for n_steps iterations.
solver_step_1dfunctionPerform a single 1-D solver iteration.
solver_step_2dfunctionPerform a single 2-D solver iteration.
strong_variational_costfunctionStrong-constraint variational cost of the initial state.
time_patchesfunctionOverlapping consecutive time pairs for one-step increment losses.
to_optimistix_adjointfunctionMap an adjoint spec onto an optimistix.AbstractAdjoint.
train_loss_fnfunctionCompute the training loss for a single batch.
train_stepfunctionPerform a single training step (forward, backward and update).
variational_costfunctionVariational cost, the weighted sum of observation and prior mean squares.
variational_cost_gradfunctionGradient of variational_cost w.r.t. x.
wavelet_basisfunctionOrthonormal wavelet (DWT) reduced basis on a periodic grid.

Upstream: gauss-flows-maps

Invertible and conditioned maps: bijections, surjections.

gauss_flows_maps.bijections

NameKindWhat it does
ActNormclassActivation normalization (ActNorm) for image-shaped events.
ActNorm1DclassActivation normalization (ActNorm) for 1-D events.
AffineCouplingclassAffine coupling layer.
BatchNormclassInvertible batch normalization layer for 1D inputs.
CircularRQSplineCouplingclassCoupling layer whose transformer is a circular rational quadratic spline.
CircularRationalQuadraticSplineclassScalar rational quadratic spline with tied endpoint derivatives.
ContinuousAffineCouplingclassTime-gated affine coupling with optional control conditioning.
DeepSigmoidCouplingclassCoupling layer with a monotone single-layer sigmoidal transformer.
ElementwiseclassThe bijection x ↦ y = g(x), elementwise, for a reparametrisation map g.
FixedRotationclassFixed (non-trainable) orthogonal rotation matrix.
GINCouplingclassVolume-preserving affine coupling from Sorrenson et al. (2020).
GeneralizedDivisiveNormalizationclassGeneralized divisive normalization for image-shaped events (..., C).
GeneralizedDivisiveNormalization1Dclass1-D Generalized divisive normalization with full D x D coupling.
HaarWaveletclassHaar wavelet transform bijection (1-D, last axis).
HistogramCDFclassMarginal Gaussianization via a per-dimension empirical histogram CDF.
HouseholderRotationclassOrthogonal rotation via a sequence of Householder reflections.
InverseGaussCDFclassApply the inverse Gaussian CDF (probit) element-wise.
Invertible1x1ConvclassInvertible 1×1 convolution with LU-parameterised weight (Glow).
LULinearPermuteclassInvertible linear layer via LU decomposition composed with a fixed permutation.
MatrixExponentialclassClosed-form linear neural flow parameterised by exp(W · t).
MixtureGaussianCDFclassMarginal Gaussianization via a mixture-of-Gaussians CDF.
MixtureGaussianCDFCouplingclassCoupling layer whose transformed half goes through a mixture-CDF.
MixtureLogisticCDFclassMarginal Gaussianization via a mixture-of-logistics CDF.
Orthogonal1x1ConvclassOrthogonal 1x1 convolution (Cayley-parameterised orthogonal mixing).
OrthogonalConvExponentialclassOrthogonal convolution via the exponential of a skew-symmetric operator.
OrthogonalRotationclassLearnable orthogonal rotation via the Cayley map.
PeriodicShiftclassLearnable circular shift on selected periodic dimensions.
PeriodicWrapclassCanonical projection of selected dimensions onto [−bound, bound].
PlanarFlowclassPlanar normalizing-flow bijection (Rezende & Mohamed 2015).
RQSplineCouplingclassRational quadratic spline coupling layer.
RQSplineMarginalclassMarginal Gaussianization via rational-quadratic splines.
SqueezeclassVolume-preserving squeeze that trades spatial extent for channels.
SylvesterFlowclassSylvester normalizing flow (van den Berg et al. 2018).
TimeFourierclassFourier-feature time gate with g(0) = 0 by construction.
TimeIdentityclassIdentity time gate g(t) = t.
TimeTanhclassTanh time gate with g(0) = 0 by construction.

gauss_flows_maps.surjections

NameKindWhat it does
AbstractStochasticclassBase class for transforms that are stochastic in both directions.
AbstractSurjectionclassBase class for SurVAE surjective transforms.
AugmentclassGenerative surjection that appends conditionally sampled dimensions.
SimpleAbsSurjectionclassElementwise absolute-value surjection with a random-sign inverse.
SimpleMaxPoolSurjection2dclass2D max-pooling surjection with a learned residual decoder.
SimpleSortSurjectionclassSort along one axis; invert via independent per-slice permutations.
SliceclassInference surjection that drops the trailing dimensions of a 1D event.
StochasticPermutationclassUniform random permutation along one axis (zero log-det).
VAEclassVariational autoencoder as a SurVAE stochastic transform.

gauss_flows_maps.conditioning

NameKindWhat it does
AbstractConditionerclassProtocol for (h, c) → y conditioning layers.
AffineModulationclassFeature-wise linear modulation (FiLM): y = γ(c) ⊙ h + β(c).
ConcatConditionerclassConcatenate h and c, then apply one Linear.
ConditionerclassWrap an unconditional bijection with a context-amortised affine modulation.
HyperLinearclassGenerate a target Linear’s (W, b) from c, then apply it.
pack_time_controlfunctionPack time and optional control vector into one condition array.
time_control_cond_shapefunctionReturn the FlowJax cond_shape for packed (time, control) inputs.
unpack_time_controlfunctionUnpack a packed (time, control) condition.
zero_readoutfunctionScale a readout’s weight by scale and set its bias to bias.

gauss_flows_maps.sphere

NameKindWhat it does
expmap_spherefunctionMap a tangent vector at x to the sphere via the exponential map.
logmap_spherefunctionReturn the tangent vector at x whose exp-map reaches y.
tangent_basisfunctionReturn an orthonormal basis of the tangent space Tₓ Sᵈ.

Upstream: gauss-flows-models

Gaussianization (RBIG) and normalizing flows, filters.

gauss_flows_models.flows

NameKindWhat it does
ClassCondFlowclassClass-conditional flow built on a ClassCondDiagGaussian base.
DiffeqConcatclassMLP vector field with a learnable scalar time embedding.
DiffeqMLPclassMLP vector field f(ode_time, x, condition) via concatenation.
FFJORDclassContinuous normalizing flow via a learned ODE.
SurVAEFlowclassContainer that threads PRNG keys through a mixed bijection / surjection chain.
coupling_gaussianization_flowfunctionConstruct a coupling-based Gaussianization flow.
gaussianization_flowfunctionConstruct a Gaussianization flow.
iterative_rbigfunctionConstruct an iterative RBIG (Rotation-Based Iterative Gaussianization) flow.

gauss_flows_models.filters

NameKindWhat it does
ConjugateTransformFilterclassEnsemble Kalman analysis performed in a Gaussianised latent space.
TransformFilterclassRun a Gaussian filter in warped coordinates.
normalizing_kalman_filterfunctionCompose a state-space base with a per-timestep observation warp.
rbig_conjugate_filterfunctionFit a Gaussianising warp to a prior ensemble with RBIG.

gauss_flows_models.distributions

NameKindWhat it does
AbstractOperatorGaussianclass𝒩(μ, Σ) with Σ a lineax operator that the subclass builds.
ClassCondDiagGaussianclassClass-conditional diagonal Gaussian with learned per-class parameters.
ConditionalDiagGaussianclassDiagonal Gaussian whose location and scale are an affine modulation of noise.
GMRFBaseclassA flow base over a gaussx Gaussian Markov random field.
GaussianFieldLikeclassWhat GMRFBase uses of a Gaussian field.
GaussianMixtureclassTrainable multivariate Gaussian-mixture base distribution.
LinearGaussianSSMclassp(y_1:T) of a linear-Gaussian state-space model; event shape (T, M).
LowRankGaussianclass𝒩(μ, W Wᵀ + Ψ): probabilistic PCA (isotropic Ψ) or factor analysis (diagonal Ψ).
StructuredGaussianclass𝒩(μ, Σ) for a structured covariance operator whose array leaves are trainable.
UniformOnSphereclassUniform distribution on the unit sphere Sᵈ ⊂ ℝ^{d+1}.
VonMisesFisherclassVon Mises–Fisher distribution on the unit sphere Sᵈ ⊂ ℝ^{d+1}.

gauss_flows_models.inference

NameKindWhat it does
fit_gaussianization_flowfunctionFit a Gaussianization flow to data by maximum likelihood.
fit_rbigfunctionFit an iterative-Gaussianization (RBIG) flow to data in closed form.
fit_rbig_couplingfunctionWarm-start an RBIG-style coupling flow in closed form.

gauss_flows_models.info_theory

NameKindWhat it does
entropyfunctionDifferential entropy of a flow (flow-based Monte-Carlo estimator).
entropy_reductionfunctionDifferential entropy of x via a Gaussianization flow (RBIG-way).
gaussian_entropyfunctionDifferential entropy of a Gaussian (analytical Gaussian closed form).
gaussian_kl_divergencefunctionKL divergence of two Gaussians (analytical Gaussian closed form).
gaussian_mutual_informationfunctionMutual information of Gaussian blocks (analytical Gaussian closed form).
gaussian_total_correlationfunctionTotal correlation of a Gaussian (analytical Gaussian closed form).
information_reductionfunctionTotal correlation removed between two representations (RBIG-way reduction).
kl_divergencefunctionKL divergence KL(P ‖ Q) of flows (flow-based Monte-Carlo estimator).
kl_divergence_reductionfunctionKL divergence KL(P || Q) via a reference Gaussianization (RBIG-way).
mutual_informationfunctionMutual information I(X; Y) of flows (flow-based Monte-Carlo estimator).
negentropyfunctionNegentropy of a flow (flow-based Monte-Carlo estimator).
total_correlationfunctionTotal correlation of a flow (flow-based Monte-Carlo estimator).
total_correlation_reductionfunctionTotal correlation of x via a Gaussianization flow (RBIG-way).

Upstream: pyrox

Equinox modules with NumPyro sample and param sites.

pyrox.inference

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

Upstream: pyrox-gp

Gaussian processes for pyrox.

pyrox_gp

NameKindWhat it does
BernoulliLikelihoodclassBinary classification likelihood with logit link, over gaussx.BernoulliLikelihood.
ConditionedGPclassGP conditioned on Gaussian-likelihood training observations.
ConditionedLatentFactorGPclassLatent-factor posterior — MAP latents plus the decoder posterior.
ConditionedMultiOutputGPclassMulti-output GP conditioned on Gaussian-likelihood observations.
ConditionedMultiOutputSparseGPclassA sparse multi-output GP conditioned through a fitted guide.
ConditionedNonGaussGPclassGP conditioned on a non-Gaussian likelihood via an advanced strategy.
ConditionedOILMMGPclassOILMM posterior — Q conditioned scalar GPs plus the mixing.
ConditionedSparseGPclassA sparse GP conditioned through a fitted guide on its inducing values.
ConjugateVIclassNatural-gradient / CVI update for sparse variational GPs.
ConstantclassConstant kernel k(x, x') = sigma^2.
CosineclassCosine kernel sigma^2 cos(2 pi ||x - x'|| / period).
DecoupledInducingFeaturesclassDecoupled mean / covariance inducing-feature bases (Cheng & Boots 2017).
DecoupledPathwiseSamplerclassSparse/decoupled pathwise sampler with RFF prior + inducing update.
DeltaGuideclassPoint-mass (MAP-style) variational posterior over inducing values.
DistLikelihoodclassRe-exported from pyrox.
ExpectationPropagationclassParallel expectation propagation (Minka 2001) with damping.
FourierInducingFeaturesclassVFF — Variational Fourier inducing features on [−L,L]D[-L, L]^D.
FullRankGuideclassFull-rank Gaussian variational posterior over inducing values u.
GPPriorclassFinite-dimensional GP prior over a fixed training input set.
GaussNewtonInferenceclassGauss-Newton inference: Newton loop with PSD-projected curvature.
GaussianLikelihoodclassGaussian observation model p(y∣f)=N(y∣f,σ2)p(y \mid f) = N(y \mid f, \sigma^2), over gaussx.GaussianLikelihood.
GradientPosteriorclassGaussian posterior over ∇f\nabla f at MM test points (point-major).
GuideclassRe-exported from pyrox.
HeteroscedasticGaussianLikelihoodclassGaussian regression with input-dependent noise, over gaussx.HeteroscedasticGaussianLikelihood.
ICMKernelclassIntrinsic coregionalization model with one shared latent kernel.
InducingFeaturesclassProtocol for inter-domain inducing features.
LMCKernelclassLinear model of coregionalization for vector-valued GPs.
LaplaceInferenceclassLaplace approximation via Newton iteration on the log posterior.
LaplacianInducingFeaturesclassInducing features from low-frequency graph Laplacian eigenvectors.
LatentFactorGPPriorclassGP latent factors with an analytically marginalized linear decoder.
LikelihoodclassRe-exported from pyrox.
LinearclassLinear kernel sigma^2 x^T x' + bias.
MaternclassMatern kernel with nu in {0.5, 1.5, 2.5}.
MeanFieldGuideclassDiagonal Gaussian variational posterior over inducing values u.
MultiOutputGPPriorclassFinite-dimensional multi-output GP prior over fixed training inputs.
MultiOutputInducingVariablesclassShared inducing-point structure for LMC-style sparse workflows.
MultiOutputSparseGPPriorclassSparse multi-output GP prior over shared inducing inputs.
NaturalGuideclassNatural-parameter Gaussian variational posterior over inducing values.
OILMMGPPriorclassOrthogonal-mixing multi-output GP prior with a projected exact posterior.
OILMMKernelclassOrthogonal instantaneous linear mixing model.
PathwiseFunctionclassCallable posterior function draw(s) produced by a pathwise sampler.
PathwiseSamplerclassExact-GP pathwise posterior sampler using Matheron’s rule.
PeriodicclassPeriodic (MacKay) kernel.
PoissonLikelihoodclassCount likelihood with log link, over gaussx.PoissonLikelihood.
PolynomialclassPolynomial kernel sigma^2 (x^T x' + bias)^degree.
PosteriorLinearizationclassIterated statistical-linearization site updates.
QuasiNewtonInferenceclassMAP optimization via L-BFGS, Laplace covariance at convergence.
RBFclassRadial basis function (squared exponential) kernel.
RationalQuadraticclassRational quadratic kernel.
SharedInducingPointsclassShared inducing inputs for multi-output latent GP collections.
SlepianInducingFeaturesclassRegion-localized Slepian inducing features on S2S^2.
SoftmaxLikelihoodclassMulti-class classification likelihood with softmax link, over gaussx.SoftmaxLikelihood.
SparseGPPriorclassGP prior parameterized over inducing inputs Z.
SphericalHarmonicInducingFeaturesclassVISH — inducing harmonics on S2S^2 (Dutordoir et al. 2020).
StudentTLikelihoodclassHeavy-tailed regression p(y∣f)=StudentT(ν,f,σ)p(y \mid f) = \mathrm{StudentT}(\nu, f, \sigma), over gaussx.StudentTLikelihood.
WarpedGaussianLikelihoodclassp(y∣f)=N(y∣G(f),σ2)p(y \mid f) = N(y \mid G(f), \sigma^2) -- the transformed-GP model.
WhiteclassWhite-noise kernel sigma^2 delta(x, x').
WhitenedGuideclassWhitened-coordinate Gaussian variational posterior over inducing values.
bbmm_solverfunctionBBMM with a low-rank preconditioner (pyrox#557).
collapsed_lfr_log_probfunctionLog-likelihood with the linear decoder marginalized analytically.
decoder_posteriorfunctionClosed-form matrix-normal posterior over the decoder.
funk_hecke_coefficientsfunctionDeprecated: use kernellib.funk_hecke_coefficients on a frozen kernel.
gp_factorfunctionRegister the collapsed GP log marginal likelihood with NumPyro.
gp_laplace_factorfunctionRegister the Laplace approximate GP evidence with NumPyro.
gp_samplefunctionSample a latent function f at the prior’s training inputs.
init_inducingfunctionInducing inputs (M, D): rows of X picked by kernellib.select_landmarks.
latent_initfunctionInitial latents (N, n_latent) for a GPLVM or latent-factor model.
latent_total_correlationfunctionTotal correlation of the fitted latent factors.
lfr_factorfunctionRegister the collapsed latent-factor log-likelihood with NumPyro.
lfr_modelfunctionMAP-over-latents collapsed latent-factor regression model.
lfr_predictive_momentsfunctionExact moments of the product of two independent Gaussians.
matfree_solverfunctionCG and a matfree-backed log-determinant, preconditioned (pyrox#557).
mo_gp_factorfunctionRegister the collapsed multi-output GP marginal likelihood with NumPyro.
mo_svgp_elbofunctionStructured multi-output SVGP ELBO as a differentiable scalar.
mo_svgp_factorfunctionRegister the multi-output SVGP ELBO as a NumPyro factor site.
oilmm_factorfunctionRegister the OILMM collapsed log marginal likelihood with NumPyro.
preconditioned_cg_solverfunctionDeprecated alias of matfree_solver, with its old arguments and defaults.
svgp_elbofunctionStructured SVGP ELBO as a differentiable scalar.
svgp_factorfunctionRegister the structured SVGP ELBO as a NumPyro factor site.
warp_to_basefunctionMap observations into the space where the factor model is linear.
warped_decoder_posteriorfunctionMatrix-normal decoder posterior, read in the warped space.
warped_lfr_log_probfunctionCollapsed latent-factor log-likelihood on warped observations.
warped_predictive_momentsfunctionMoments of y=G(f)+ϵy = G(f) + \epsilon under q(f)q(f), by quadrature.

Upstream: pyrox-lgm

Latent Gaussian models for pyrox.

pyrox_lgm

NameKindWhat it does
AR1classStationary AR(1), xt=ρxt−1+εtx_t = \rho x_{t-1} + \varepsilon_t.
AbstractComponentclassA latent field with hyperpriors and a projector to observations.
AbstractObservationclassRe-exported from pyrox.
BYM2classBYM2 (Riebler et al., 2016), a mixture of unstructured and ICAR effects.
Bernoulliclassy ~ Bernoulli(sigmoid(eta)), y in {0, 1}.
BesagclassIntrinsic CAR (ICAR / Besag): precision τR\tau R, R=D−WR = D - W.
Binomialclassy ~ Binomial(n, sigmoid(eta)) with n = data["n_trials"].
CARclassProper CAR: precision τ(D−ρW)\tau(D - \rho W), ρ∈[0,1)\rho \in [0, 1).
ConditionedLGMclassAn LGMPrior conditioned on Gaussian observations, at fixed θ\theta.
ConditionedNonGaussLGMclassAn LGMPrior conditioned under any likelihood, at fixed θ\theta.
DiagnosticsclassLeave-one-out and information criteria of an INLAResult.
FixedEffectsclassFixed effects β∼N(0,λ−1I)\beta \sim \mathcal N(0, \lambda^{-1} I), columns of XX.
Gaussianclassy ~ N(eta, 1/prec); prec under PCPrecision(1, 0.01).
GenericclassA field with precision τR\tau R for a user-supplied structure RR.
IIDclassIndependent effects xi∼N(0,1/τ)x_i \sim \mathcal N(0, 1/\tau), i<ni < n.
INLAResultclassWhat inla() returns.
KroneckerclassSeparable product Q=Qmain⊗QgroupQ = Q_\text{main} \otimes Q_\text{group} (R-INLA group).
LGMclassA latent Gaussian model: components, fixed effects and an observation model.
LGMPriorclassThe latent field of an LGM: its components and fixed effects.
LerouxclassLeroux CAR: precision τ(ρR+(1−ρ)I)\tau(\rho R + (1 - \rho) I), ρ∈[0,1]\rho \in [0, 1].
MarkovGPclassA temporal Gaussian process with a gaussx SDE kernel, in precision form.
NegativeBinomialclassy ~ NegBin(mean exp(eta), size); size under Gamma(1, 0.1).
PCAR1RhoclassPC prior on the lag-one correlation ρ\rho of an AR(1) process.
PCBYM2PhiclassPC prior on the BYM2 mixing parameter ϕ∈(0,1)\phi \in (0, 1).
PCMaternclassJoint PC prior on the range ρ\rho and marginal sd σ\sigma of a Matérn field.
PCPrecisionclassPC prior on the precision τ\tau of a Gaussian effect.
Poissonclassy ~ Poisson(exp(eta)); put the log exposure in data["offset"].
RW1classFirst-order random walk, xt+1−xt∼N(0,1/τ)x_{t+1} - x_t \sim \mathcal N(0, 1/\tau).
RW2classSecond-order random walk, xt+1−2xt+xt−1∼N(0,1/τ)x_{t+1} - 2x_t + x_{t-1} \sim \mathcal N(0, 1/\tau).
Replicateclassn_rep independent copies of a component, sharing its hyperparameters.
SPDEclassMatérn field via the SPDE, on a triangle mesh or a regular grid.
StructureSpectrumclassSpectral measure of R∗+R_\ast^{+}, the generalised inverse of a structure.
SummaryclassPosterior summary: mean, sd and the 2.5 / 50 / 97.5 % quantiles.
diagnosticsfunctionDIC, WAIC, CPO and PIT of an INLAResult, with no refits.
ffunctionBuild a latent component named after the data column it indexes.
inlafunctionIntegrated nested Laplace approximation of a latent Gaussian model.
lgm_factorfunctionRegister an LGM’s exact log marginal under Gaussian noise with NumPyro.
lgm_laplace_factorfunctionRegister an LGM’s Laplace log marginal with NumPyro, for any likelihood.
structure_spectrumfunctionThe spectrum of R+R^{+} that PCBYM2Phi needs, computed once.

Upstream: pyrox-nn

Bayesian neural networks for pyrox.

pyrox_nn

NameKindWhat it does
ArcCosineFourierFeaturesclassRandom features for the arc-cosine kernel (Cho & Saul, 2009).
BayesianAffineModulationclassAffineModulation of gauss-flows-maps with Normal priors on the FiLM generator.
BayesianConcatConditionerclassConcatConditioner of gauss-flows-maps with Normal priors on the projection.
BayesianFourierNetclassFourierNet with Bayesian priors on all filter and linear weights.
BayesianGaborNetclassGaborNet with Bayesian priors on all filter and linear weights.
BayesianHyperLinearclassHyperLinear of gauss-flows-maps with Normal priors on the generator only.
BayesianNeuralFieldclassThe full Bayesian Neural Field architecture, wrapping geonnax.NeuralFieldMLP.
BayesianSIRENclassSIREN with regime-scaled Normal priors on all layer weights.
BayesianSlepianEncoderclassSlepian encoder with NumPyro sites for cap radius and centre.
ConditionedRFFNetclassConditional analogue of pyrox_nn.RandomKitchenSinks.
DeepVSSGPclassDeep Random Feature Expansion for Variational SSGP (Cutajar et al. 2017).
DenseDVIclassDeterministic Variational Inference dense layer (Wu et al., 2018).
DenseFlipoutclassBayesian dense layer with Flipout sign-flip structure.
DenseHierarchicalclassHierarchical Bayesian dense layer with multiplicative shrinkage.
DenseNCPclassNoise Contrastive Prior dense layer (Hafner et al., 2019).
DenseRank1classRank-1 ensemble dense layer.
DenseReparameterizationclassBayesian dense layer via the reparameterization trick.
DenseVariationalclassDense layer with a user-supplied prior factory.
DenseVariationalDropoutclassSparse variational dropout dense layer.
FourierFeaturesclassPer-input dyadic-frequency Fourier basis.
GaussianRegressionHeadclassBayesian heteroscedastic regression head (mean plus log-scale).
HSGPFeaturesclassHilbert-Space Gaussian Process feature layer (Riutort-Mayol et al., 2023).
HyperFourierFeaturesclassRandom Fourier features with (W, b, log_lengthscale) from a parameter net.
InteractionFeaturesclassElement-wise products on selected pairs of input columns.
LaplaceCosineFeaturesclassCosine-bias variant of random Fourier features for the Laplace kernel.
LaplaceFourierFeaturesclassSSGP-style RFF layer with Laplace (Matern-1/2) spectral density.
LastLayerLaplaceclassGaussian posterior over a selected parameter group of a fitted model.
LayerNormEnsembleclassPer-ensemble-member LayerNorm.
MCSigmoidDenseFAclassHeteroscedastic multi-label output layer (FA noise + sigmoid).
MCSoftmaxDenseFAclassHeteroscedastic multi-class output layer (FA noise + softmax).
MaternCosineFeaturesclassCosine-bias variant of random Fourier features for the Matern kernel.
MaternFourierFeaturesclassSSGP-style RFF layer with Matern spectral density.
MultiHeadAttentionBEclassMulti-head attention with BatchEnsemble rank-1 projections.
NCPNormalOutputclassOutput-side Noise Contrastive Prior layer (Hafner et al., 2018).
RBFCosineFeaturesclassCosine-bias variant of random Fourier features for the RBF kernel.
RBFFourierFeaturesclassSSGP-style RFF layer with RBF spectral density.
RandomFeatureGaussianProcessclassSNGP output layer (Liu et al., 2020).
RandomKitchenSinksclassRandom Kitchen Sinks: RFF + a learned linear head.
SeasonalFeaturesclassPeriod-and-harmonic cos/sin basis on a scalar time axis.
SphericalHarmonicFeaturesclassWeight-space GP on the sphere S2S^2 from real spherical harmonics.
StandardizationclassApply a fixed-coefficient affine standardization.
VariationalFourierFeaturesclassVSSGP — RFF with a learnable variational posterior over frequencies.
cyclic_encodefunctionRe-exported from geonnax.
fourier_featuresfunctionRe-exported from functax.
interaction_featuresfunctionRe-exported from geonnax.
last_layer_laplacefunctionFit a post-hoc GGN Laplace posterior over a parameter group.
lonlat_scalefunctionRe-exported from geonnax.
lonlat_to_cartesian3dfunctionLift lon/lat coordinates onto the unit sphere.
seasonal_featuresfunctionRe-exported from functax.
seasonal_frequenciesfunctionRe-exported from functax.
spherical_harmonic_encodefunctionRe-exported from geonnax.
standardizefunctionRe-exported from geonnax.
unstandardizefunctionRe-exported from geonnax.

Upstream: pyrox-ssm

State-space models for pyrox.

pyrox_ssm

NameKindWhat it does
ConditionedLinearGaussianSSMclassA LinearGaussianSSMPrior conditioned on observations.
ConditionedMarkovGPclassMarkov GP conditioned on Gaussian-likelihood observations.
ConditionedMarkovGPSitesclassA MarkovGPSitesPrior conditioned on every site’s observations.
ConditionedNonGaussMarkovGPclassMarkov GP conditioned on a non-Gaussian likelihood via a site-based strategy.
ConditionedNonlinearGaussianSSMclassA NonlinearGaussianSSMPrior conditioned on observations.
ConditionedSharedPlusSiteMarkovGPclassA SharedPlusSiteMarkovGPPrior conditioned on its observations.
ConditionedSparseMarkovGPclassSparse Markov GP fitted to a guide.
ConstantSDEclassRe-exported from gaussx.
CosineSDEclassRe-exported from gaussx.
ExpectationPropagationMarkovclassParallel Expectation Propagation for MarkovGPPrior.
GaussNewtonMarkovInferenceclassGauss-Newton (Markov) inference: Newton with a strict PSD floor.
IntegratedWienerSDEclassRe-exported from gaussx.
LaplaceMarkovInferenceclassLaplace approximation for MarkovGPPrior.
LinearGaussianSSMPriorclassPrior over a linear-Gaussian state-space model given by its matrices.
MarkovGPPriorclassLinear-time temporal GP prior over a sorted 1-D grid.
MarkovGPSitesPriorclassA Markov GP prior over SS padded sites that share one SDE kernel.
MaternSDEclassRe-exported from gaussx.
NonlinearGaussianSSMPriorclassPrior over a nonlinear state-space model, filtered by moment matching.
PeriodicSDEclassRe-exported from gaussx.
PosteriorLinearizationMarkovclassPosterior linearization for MarkovGPPrior (Markov IPLF).
ProductSDEclassRe-exported from gaussx.
QuasiPeriodicSDEclassRe-exported from gaussx.
SDEKernelclassRe-exported from gaussx.
SDEParamsclassRe-exported from gaussx.
SharedPlusSiteMarkovGPPriorclassA shared GP plus one independent GP per site, on a merged time grid.
SparseMarkovGPPriorclassSparse variational GP prior over an SDE kernel and inducing time grid.
SumSDEclassRe-exported from gaussx.
lgssm_factorfunctionRegister a linear-Gaussian SSM’s log marginal as a NumPyro factor.
markov_gp_factorfunctionRegister the collapsed Markov-GP marginal log-likelihood with NumPyro.
markov_gp_from_innovationsfunctionLatent path of a Markov GP from whitened innovations, in linear time.
markov_gp_innovations_samplefunctionSample a Markov-GP latent path through whitened innovations.
markov_gp_samplefunctionSample a latent function f at the prior’s training times.
markov_gp_sites_factorfunctionRegister the summed Markov-GP log marginal of S sites as one factor.
markov_implicit_adjointfunctionThe implicit adjoint of the Markov strategies, safe to use inside NUTS.
markov_laplace_factorfunctionRegister a non-Gaussian Markov GP’s approximate evidence with NumPyro.
noncentred_log_normalfunctionA positive per-site parameter around a population value, non-centred.
nonlinear_ssm_factorfunctionRegister a nonlinear state-space model’s log likelihood as a factor.
pad_sitesfunctionPad ragged site series to (S, N) with strictly increasing padded times.
shared_plus_site_factorfunctionRegister the log marginal of a shared GP plus one GP per site.
sparse_markov_elbofunctionSparse variational ELBO for SparseMarkovGPPrior.
sparse_markov_factorfunctionRegister sparse_markov_elbo as a NumPyro factor site.

Upstream: pyrox-gauss

Gaussian NumPyro distributions on gaussx operators.

pyrox_gauss

NameKindWhat it does
AbstractMultivariateNormalclassCommon surface of MultivariateNormal and MultivariateNormalPrecision.
GMRFDistributionclassA GMRF field as a NumPyro distribution, for numpyro.sample.
LGSSMclassLinear-Gaussian state-space model as a density over observations (T, M).
LGSSMFactoryclassCallable obs_mask -> MaskedLGSSM, for conditional use.
MarkovGaussianclassGauss-Markov chain over the states x_0:T−1 as a density over (T, d).
MaskedLGSSMclassLGSSM whose log_prob marginalises unobserved channels exactly.
MultivariateNormalclassMultivariate normal 𝒩(μ, Σ) whose covariance Σ is a lineax operator.
MultivariateNormalPrecisionclassMultivariate normal 𝒩(μ, Λ⁻¹) whose precision Λ = Σ⁻¹ is a lineax operator.

Upstream: pyrox-xtreme

Extreme-value and point-process models in NumPyro.

pyrox_xtreme

NameKindWhat it does
FrechetType2GEVDclassFréchet Type II Generalized Extreme Value Distribution for NumPyro.
GeneralizedExtremeValueDistributionclassGeneralized Extreme Value Distribution (GEVD) for NumPyro.
GeneralizedParetoDistributionclassGeneralized Pareto Distribution (GPD) for NumPyro.
GumbelType1GEVDclassGumbel Type I Generalized Extreme Value Distribution for NumPyro.
WeibullType3GEVDclassWeibull Type III Generalized Extreme Value Distribution for NumPyro.
assemble_nonstationary_gev_fieldsfunctionBuild non-stationary spatio-temporal GEV parameter fields.
design_matrixfunctionPrepend an intercept column to a static-covariate matrix.
expected_exceedancesfunctionExpected number of block exceedances of a threshold.
frechet_cdffunctionFréchet CDF.
frechet_icdffunctionFréchet quantile function.
frechet_log_probfunctionFréchet log PDF (assumes shape > 0).
frechet_meanfunctionFréchet mean (+inf when shape >= 1).
frechet_return_levelfunctionT-period return level.
gev_cdffunctionCDF of the Generalized Extreme Value distribution.
gev_icdffunctionQuantile function (inverse CDF) of the GEV distribution.
gev_log_probfunctionLog PDF of the Generalized Extreme Value distribution.
gev_log_survivalfunctionLog survival function :math:\log S(x) = \log(1 - F(x)) of the GEV.
gev_meanfunctionMean of the GEV distribution (+inf when :math:\xi \ge 1).
gev_return_levelfunctionT-period return level: :math:z_T = F^{-1}(1 - 1/T).
gev_survivalfunctionSurvival function :math:S(x) = 1 - F(x) of the GEV distribution.
gpd_cdffunctionCDF of the Generalized Pareto Distribution.
gpd_icdffunctionQuantile function (inverse CDF) of the GPD.
gpd_log_probfunctionLog PDF of the Generalized Pareto Distribution (loc = 0).
gpd_log_survivalfunctionLog survival :math:\log S(x) = -\tfrac{1}{\xi}\log(1 + \xi x/\sigma).
gpd_meanfunctionGPD mean: :math:\sigma / (1 - \xi) for :math:\xi < 1, else +inf.
gpd_return_levelfunctionT-period return level: :math:Q(1 - 1/T).
gpd_survivalfunctionSurvival function :math:S(x) = (1 + \xi x/\sigma)^{-1/\xi} of the GPD.
gumbel_cdffunctionGumbel CDF: :math:F(x) = \exp(-\exp(-z)).
gumbel_icdffunctionGumbel quantile: :math:Q(p) = \mu - \sigma\log(-\log p).
gumbel_log_probfunctionGumbel log PDF: :math:-\log\sigma - z - e^{-z}, :math:z=(x-\mu)/\sigma.
gumbel_meanfunctionGumbel mean: :math:\mu + \sigma\gamma_E.
gumbel_return_levelfunctionT-period return level: :math:Q(1 - 1/T).
nonstationary_return_levelfunctionReturn level for stationary or non-stationary GEV parameter fields.
nonstationary_return_periodfunctionReturn period associated with a threshold under (non-)stationary GEV.
pairwise_distancesfunctionEuclidean distance matrix between sites.
two_range_correlationfunctionTwo-range exponential correlation matrix with unit diagonal.
weibull_cdffunctionReverse-Weibull CDF.
weibull_icdffunctionReverse-Weibull quantile function.
weibull_log_probfunctionReverse-Weibull log PDF (assumes shape < 0).
weibull_meanfunctionReverse-Weibull mean (always finite for shape < 0).
weibull_return_levelfunctionT-period return level.

pyrox_xtreme.extraction

NameKindWhat it does
XarrayQuantileRegressorclassQuantile regressor that operates on :class:xr.DataArray inputs.
constant_thresholdfunctionReturn a constant threshold value.
decluster_runsfunctionDecluster exceedances using the runs method.
decluster_separationfunctionDecluster by enforcing minimum separation between peaks.
declustered_block_maximafunctionExtract declustered block maxima by identifying independent extreme events.
estimate_extremal_indexfunctionEstimate the extremal index (theta), a measure of clustering.
exceedance_countsfunctionCount the values above a threshold within each temporal block.
exceedance_ratefunctionThe fraction of observed values above a threshold within each temporal block.
exceedance_statisticfunctionSummarise the values above a threshold within each temporal block.
quantile_regression_thresholdfunctionEstimate a time-varying threshold via linear quantile regression.
quantile_thresholdfunctionCalculate threshold based on a percentile of the data.
r_largest_block_maximafunctionExtract r-largest order statistics from each block.
rolling_thresholdfunctionCalculate time-varying threshold using a rolling window.
seasonal_thresholdfunctionCalculate seasonal threshold (backward compatibility wrapper).
sliding_block_maximafunctionExtract block maxima using a sliding window approach.
spatial_block_maximafunctionExtract spatial block maximum values from an xarray DataArray.
temporal_block_maximafunctionExtract temporal block maximum values from an xarray DataArray.
temporal_block_minimafunctionExtract temporal block minimum values from an xarray DataArray.
temporal_thresholdfunctionCalculate time-varying threshold based on temporal grouping.

pyrox_xtreme.point_processes

NameKindWhat it does
EventHistoryclassFixed-size buffer of events + optional marks.
GoodnessOfFitclassBundle of diagnostics returned by goodness_of_fit.
MarkedSampleResultclassMarked temporal sample: (times, mask, marks).
MarkedSpatialSampleResultclassMarked spatial sample: (locations, mask, marks).
MarkedSpatiotemporalSampleResultclassMarked spatiotemporal sample: (locations, times, mask, marks).
RectangularDomainclassAxis-aligned rectangle [lo, hi] ⊂ ℝᵈ.
SampleResultclassUnmarked temporal sample: (times, mask, n_events).
SpatialSampleResultclassUnmarked spatial sample: (locations, mask, n_events).
SpatiotemporalSampleResultclassUnmarked spatiotemporal sample: (locations, times, mask, n_events).
TemporalDomainclassHalf-open temporal interval [t0, t1) ⊂ ℝ.
constant_mark_distributionfunctionMark distribution that ignores time and history and returns d.
constant_retentionfunctionRetention that always returns the same probability p.
cumulative_log_intensityfunctionShorthand for :math:\Lambda(t) = \int_0^t \lambda(s) ds.
integrate_log_intensityfunctionCompute :math:\int_{t_0}^{t_1} \exp(\log\lambda(s))\, ds.
integrate_log_intensity_spatialfunctionCompute :math:\int_D \exp(\log\lambda(s))\, ds.
integrate_log_intensity_spatiotemporalfunctionCompute :math:\int_{t_0}^{t_1} \int_D \exp(\log\lambda(s, t))\, ds\, dt.
time_varying_marksfunctionWrap a time → Distribution callable into the full signature.
time_varying_retentionfunctionWrap a pure function of time into the full retention signature.

pyrox_xtreme.simulations

NameKindWhat it does
SpatialFeatureExtractorclassStatic methods to derive physical features from a Digital Elevation Model (DEM).
augment_spatial_featuresfunctionPipeline to run all extractors and merge into Dataset.
compute_advanced_climate_signalfunctionGenerates Tmax and Precip Mean fields using advanced physics proxies.
compute_climate_signalfunctionCombines Spatial and Temporal fields to create a mean climate signal (Mu).
create_iberian_domainfunctionCreates the master spatial dataset with Lat, Lon, Elevation, and Land Mask.
generate_fractal_terrainfunctionGenerates coherent terrain using Fractal Brownian Motion (fBm).
generate_gmst_trajectoryfunctionGenerates a synthetic Global Mean Surface Temperature (GMST) anomaly curve.
generate_iberia_maskfunctionProcedurally generates a boolean mask approximating the Iberian Peninsula and Balearic Islands using geometrical primitives.
generate_physical_gmstfunctionSimulates Global Mean Surface Temperature (GMST) using a 0-D Energy Balance Model.
generate_spatial_fieldfunctionGenerates static spatial data: Lat, Lon, Elevation, Distance to Coast.
simulate_precip_extremesfunctionSimulates Precipitation Extremes: 1.
simulate_temp_extremesfunctionSimulates Block Maxima Temperature via the GEV distribution.
simulate_wind_extremesfunctionSimulates Extreme Wind Speeds (Gusts) using Weibull distribution.

Upstream: manipy-jax

Manifold learning and alignment, and hyperspectral workflows.

manipy

NameKindWhat it does
DiffusionMapsclassDiffusion maps (Coifman & Lafon, 2006).
IsomapclassIsomap: classical MDS of geodesic distances on a k-NN graph.
LocallyLinearEmbeddingclassLocally linear embedding (LLE), modified LLE, Hessian LLE and LTSA.
ManifoldAlignmentclassSemi-supervised linear manifold alignment of several domains.
NystromExtensionclassNyström extension of a fitted spectral embedding to new points.

manipy.datasets

NameKindWhat it does
indian_pinesfunctionAVIRIS Indian Pines: 145 x 145 pixels, 200 bands, 16 crop classes.
pavia_universityfunctionROSIS Pavia University: 610 x 340 pixels, 103 bands, 9 urban classes.
s_curvefunctionThe S-curve: a 2-D sheet bent into an S in 3-D.
salinasfunctionAVIRIS Salinas: 512 x 217 pixels, 204 bands, 16 crop classes.
severed_spherefunctionA unit sphere with both polar caps severed and a meridian strip cut.
swiss_rollfunctionThe Swiss roll: a 2-D sheet rolled up in 3-D.

manipy.hsi

NameKindWhat it does
array_to_imagefunctionInvert image_to_array: fold pixel rows back into an image.
image_to_arrayfunctionFlatten an image to one row per pixel, in row-major order.
partial_label_potentialfunctionThe potential that links pixels sharing a known label.
pixel_coordinatesfunctionThe (row, column) of every pixel, in row-major order.
pixel_graphfunctionThe pixel-adjacency graph of an image (wraps kernellib.grid_graph).
spatial_spectral_potential_imagefunctionThe spatial-spectral Schrödinger potential of a hyperspectral cube.
stratified_splitfunctionSplit the labelled pixels into train and test, per class.

manipy.metrics

NameKindWhat it does
average_accuracyfunctionAverage accuracy (AA): the mean of per_class_accuracy over the classes present in y_true.
cohen_kappafunctionCohen’s kappa: agreement beyond chance.
cohen_kappa_variancefunctionLarge-sample variance of cohen_kappa (Congalton & Green, 2009).
confusion_matrixfunctionThe confusion matrix C, with C[i, j] the pixels of true class i predicted as class j.
continuityfunctionContinuity of an embedding (Venna & Kaski, 2001).
knn_preservationfunctionMean fraction of each point’s kk nearest neighbours kept by the embedding.
lcmcfunctionLocal continuity meta-criterion (Chen & Buja, 2009).
overall_accuracyfunctionOverall accuracy (OA): the fraction of correctly classified pixels.
per_class_accuracyfunctionProducer’s accuracy of each class: its recall, C[i, i] / sum_j C[i, j].
trustworthinessfunctionTrustworthiness of an embedding (Venna & Kaski, 2001).