Gaussian#
- class gpjax.likelihoods.Gaussian(obs_stddev=1.0, integrator=<gpjax.integrators.AnalyticalGaussianIntegrator object>)[source]#
Bases:
AbstractLikelihoodGaussian likelihood object.
- Parameters:
obs_stddev (Any)
integrator (AbstractIntegrator)
- link_function(f)[source]#
The link function of the Gaussian likelihood.
- Parameters:
f (Float[Array, "..."]) – Function values.
- Returns:
The likelihood function.
- Return type:
npd.Normal
- noise_vector(n)[source]#
Per-observation noise variance vector (scalar broadcast for single-output).
- Parameters:
n (int)
- Return type:
Float[jaxlib._jax.Array, ‘N’] | Float[ndarray, ‘N’]
- predict(dist)[source]#
Evaluate the Gaussian likelihood at a predictive distribution.
Preserves diagonal scale when the input carries a
lineax.DiagonalLinearOperator(including when wrapped inlx.TaggedLinearOperatoras emitted byDiagonalKernelComputation/ConstantDiagonalKernelComputation). Always returnsGaussianDistribution. This widens the previous return type fromnumpyro.distributions.MultivariateNormal— see CHANGELOG v0.15.- Parameters:
dist (MultivariateNormal | GaussianDistribution) – The Gaussian process posterior at a finite set of test points.
- Returns:
The predictive distribution with observation noise added to the diagonal of the covariance.
- Return type:
- prepare_targets(y, mx)[source]#
Return targets and mean in the format expected by the unified predict/MLL path.
- Parameters:
y (Float[jaxlib._jax.Array, 'N 1'] | Float[ndarray, 'N 1'])
mx (Float[jaxlib._jax.Array, 'N 1'] | Float[ndarray, 'N 1'])
- Return type:
tuple[Float[jaxlib._jax.Array, ‘N 1’] | Float[ndarray, ‘N 1’], Float[jaxlib._jax.Array, ‘N 1’] | Float[ndarray, ‘N 1’]]