AbstractGaussianNode¶
- class AbstractGaussianNode(*shape: int | None)[source]¶
Bases:
VariationalNode,ABCBase class for predictive coding nodes modelling Gaussian distributions.
A multivariate Gaussian distribution is described by the following probability density function:
\[f(\mathbf{x}; \boldsymbol{\mu}, \boldsymbol{\Sigma}) = \frac{1}{\sqrt{(2\pi)^N \lvert\boldsymbol{\Sigma}\rvert}} \exp \left(-\frac{1}{2} (\mathbf{z} - \boldsymbol{\mu}) \boldsymbol{\Sigma}^{-1} (\mathbf{z} - \boldsymbol{\mu})^\intercal \right)\]where \(\mathbf{x}\) is a sample, \(\boldsymbol{\mu}\) is the mean, and \(\boldsymbol{\Sigma}\) is the covariance matrix, for an \(N\)-dimensional distribution.
- Parameters:
*shape (int | None) – shape of the node’s learned state.