Posterior#
- class gpjax.conditioning.Posterior[source]#
Bases:
ModuleA conditioned Gaussian process, \(p(f \mid \mathcal{D})\).
The result of conditioning a joint model on data. Immutable: the factorisation of the training covariance is computed once at
conditiontime and cached on this object; every query is a view of it. Query the process at test inputs by calling it:posterior = model.condition(train_data) # or: model | train_data predictive = posterior(test_inputs)
- predict(test_inputs, train_data=None, *, covariance='dense')[source]#
Sugar for calling the posterior:
predict(t) == self(t).Retained for signature compatibility with the pre-v1.0 API;
train_datais accepted and ignored — this process is already conditioned on its training set.- Parameters:
- Return type: