ExponentialFamily#

class hybrid_aif.ExponentialFamily[source]#

Bases: Distribution

A Distribution in the exponential family, with a natural-parameter view.

Each family stores its numerically safest parameterization and also provides natural() and from_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__()#