construct_model#
- gpjax.gps.construct_model(prior, likelihood)[source]#
Construct the joint model for a prior/likelihood pair.
Selects the concrete
JointModelsubclass from the likelihood’s conjugacy. This is whatprior * likelihoodcalls.- Parameters:
prior (Prior) – The prior process.
likelihood (AbstractLikelihood) – The observation likelihood.
- Returns:
- A
ConjugateModelfor Gaussian likelihoods, a NonConjugateModelotherwise.
- A
- Return type:
- Raises:
ValueError – For heteroscedastic likelihoods, which carry a second prior and must be constructed directly via
HeteroscedasticModel(prior, likelihood, noise_prior=...).