Bernoulli#

class gpjax.likelihoods.Bernoulli(num_datapoints: 'int', integrator: 'AbstractIntegrator' = <gpjax.integrators.GHQuadratureIntegrator object at 0x7f301e86b890>)[source]#

Bases: AbstractLikelihood

Parameters:

The probit link function of the Bernoulli likelihood.

Parameters:

f (Float[Array, "..."]) – Function values.

Returns:

The likelihood function.

Return type:

npd.Bernoulli

predict(dist)[source]#

Evaluate the pointwise predictive distribution.

Evaluate the pointwise predictive distribution, given a Gaussian process posterior and likelihood parameters.

Parameters:

dist ([npd.MultivariateNormal, GaussianDistribution].) – The Gaussian process posterior, evaluated at a finite set of test points.

Returns:

The pointwise predictive distribution.

Return type:

npd.Bernoulli