Gaussian Process API¶
This API page includes:
- kernel classes (
RBFKernel,MaternKernel,RationalQuadraticKernel,PeriodicKernel,LinearKernel,SpectralMixtureKernel,SumKernel,ProductKernel) - regression GP families (exact, sparse, heteroscedastic, multitask ICM, spectral mixture, deep kernel)
- classification GP families (binary and OvR multiclass)
deepuq.models.gaussian_process ¶
Public Gaussian process APIs for Deep-UQ.
This module preserves historical import paths while delegating implementations into deepuq.models.gp.
DeepKernelGaussianProcessRegressor ¶
Regression-only deep kernel GP with end-to-end marginal-likelihood training.
GaussianProcessClassifier ¶
Binary GP classifier using Laplace approximation.
GaussianProcessRegressor ¶
Exact GP regression using torch tensors.
fit ¶
Fit model on training features x and targets y.
log_marginal_likelihood ¶
Return the exact GP log marginal likelihood for fitted data.
posterior_samples ¶
Draw samples from posterior predictive distribution.
predict ¶
predict(
x_star: Tensor,
return_cov: bool = False,
return_var: bool = True,
) -> Tuple[torch.Tensor, torch.Tensor]
Compute posterior predictive mean and variance/covariance.
predict_uq ¶
Return standardized UQ output for exact GP regression.
HeteroscedasticGaussianProcessRegressor ¶
Two-stage alternating GP that models input-dependent observation noise.
fit ¶
Fit mean and log-noise GPs via alternating residual updates.
predict ¶
predict(
x_star: Tensor,
return_cov: bool = False,
include_noise: bool = True,
) -> Tuple[torch.Tensor, torch.Tensor]
Predict mean and variance/covariance at test inputs.
predict_uq ¶
Return standardized UQ fields for heteroscedastic GP regression.
Kernel ¶
Base kernel interface with composition support.
MultiTaskGaussianProcessRegressor ¶
Multi-output GP regression using an intrinsic coregionalization model.
fit ¶
Fit ICM GP on fully-observed multi-output targets y:[N, T].
predict ¶
predict(
x_star: Tensor,
return_cov: bool = False,
include_noise: bool = True,
) -> Tuple[torch.Tensor, torch.Tensor]
Predict per-task means and variances/covariances at x_star.
predict_uq ¶
Return standardized UQ fields for multi-task GP regression.
OneVsRestGaussianProcessClassifier ¶
RBFKernel dataclass ¶
SparseGaussianProcessRegressor ¶
Variational inducing-point GP regression.
Notes
- By default the class uses an internal trainable RBF kernel (backward compatible behavior).
- If a fixed
kernelis provided, inducing points and noise are still optimized while kernel hyperparameters are treated as fixed.
fit ¶
Optimise sparse variational objective and cache posterior state.
posterior_samples ¶
Draw samples from sparse GP posterior predictive distribution.
predict ¶
predict(
x_star: Tensor,
return_cov: bool = False,
include_noise: bool = True,
) -> Tuple[torch.Tensor, torch.Tensor]
Predict posterior mean and variance/covariance for test inputs.
predict_uq ¶
Return standardized UQ fields for sparse GP regression.
SpectralMixtureGaussianProcessRegressor ¶
Exact GP regression with a trainable spectral mixture kernel.
fit ¶
Fit spectral mixture GP by maximizing log marginal likelihood.
predict ¶
predict(
x_star: Tensor,
return_cov: bool = False,
include_noise: bool = True,
) -> Tuple[torch.Tensor, torch.Tensor]
Predict posterior mean and variance/covariance for test points.
predict_uq ¶
Return standardized UQ output for spectral mixture GP regression.