online linear regression

Sequential Bayesian inference for the parameters of a linear regression model. Treat the parameters of the model as the unknown hidden states (). The parameters are updated with each new measurement.

This is a linear gaussian ssm with , , , .

online learning for a neural network

Sequential Bayesian inference for the parameters of a multi-layer dense neural network (perceptron) for regression. Treat the parameters (weights and biases) of the network as the unknown hidden states.

This is a nonlinear gaussian ssm, where  is the nonlinear observation model defined by a neural network. Add a small amount of Gaussian drift for numerical stability . Inference can be done using the extended Kalman filter.

The parameters are updated with each new measurement (video of training).

The model can be generalised to other likelihoods, such as Bernoulli for classification, which is then a generalised Gaussian SSM.