ExponentialFamily#
- class hybrid_aif.ExponentialFamily[source]#
Bases:
DistributionA
Distributionin the exponential family, with a natural-parameter view.Each family stores its numerically safest parameterization and also provides
natural()andfrom_natural(), a round trip up to a gauge constant and float error. Conjugate updates add in natural coordinates; rollouts read moments.- abstractmethod natural()[source]#
Natural parameters as a tuple of arrays (gauge documented per class).
- abstractmethod classmethod from_natural(*natural_params)[source]#
Inverse of
natural(), up to gauge and float error.
- __init__()#