AbstractVariationalFamily#
- class gpjax.variational_families.AbstractVariationalFamily(model)[source]#
Bases:
_SummaryMixin,Module,Generic[L]Abstract base class used to represent families of distributions that can be used within variational inference.
A variational family is a trainable approximate posterior over inducing values: it is to sparse GPs what
JointModelis to exact ones. Conditioning an already-fit family yields aPosteriorlike any other.- Parameters:
model (JointModel)
- abstractmethod condition(train_data)[source]#
Condition the family, yielding its posterior process.
The signature is the one every conditionable object in GPJax shares:
condition(train_data), withmodel | Das sugar. Families whose approximate posterior is already carried internally accepttrain_datafor that uniformity and ignore it; the collapsed family, whose optimal \(q(u)\) is solved from the data, consumes it.
- abstractmethod predict(*args, **kwargs)[source]#
Predict the GP’s output given the input.
- Parameters:
*args (Any) – Arguments of the variational family’s
predictmethod.**kwargs (Any) – Keyword arguments of the variational family’s
predictmethod.
- Returns:
The output of the variational family’s
predictmethod.- Return type: