BayesianROM#
- class BayesianROM(model, *, lifter=None, transformer=None, basis=None, ddt_estimator=None)[source]#
Probabilistic nonparametric reduced-order model.
This class connects classes from the various submodules to form a complete reduced-order modeling workflow for probabilistic models.
High-dimensional data \(\to\) transformed / preprocessed data \(\to\) compressed data \(\to\) low-dimensional probabilistic model.
Operator inference models are uniquely determined by operator matrices \(\Ohat\in\RR^{r\times d}\) that concatenate the entries of all operators in the model. For example, the time-continuous model
\[\ddt\qhat(t) = \chat + \Ahat\qhat(t) + \Hhat[\qhat(t)\otimes\qhat(t)]\]is uniquely determined by the operator matrix
\[\Ohat = [~\chat~~\Ahat~~\Hhat~] \in \RR^{r \times d}.\]Typical deterministic operator inference learns a single operator matrix \(\Ohat\) from state measurements, while probabilistic or Bayesian operator inference constructs a distribution of operator matrices, \(p(\Ohat)\). This class solves a Bayesian linear inference to define an
OperatorPosteriorand facilitates sampling from the posterior. See [GMW22].- Parameters:
- model
opinf.modelsobject Nonparametric system model, an instance of one of the following:
The model must have a
solverof one of the following types:- lifter
opinf.liftobject or None Lifting transformation.
- transformer
opinf.preobject or None Preprocesser.
- basis
opinf.basisobject or None Dimensionality reducer.
- ddt_estimator
opinf.ddtobject or None Time derivative estimator. Ignored if
modelis not time continuous.
- model
Notes
The
operatorsattribute of themodelrepresents a single draw from the operator distribution and is modified every timedraw_operators()orpredict()are called.Properties:- basis#
Dimensionality reducer.
- ddt_estimator#
Time derivative estimator.
- lifter#
Lifting transformation.
- model#
System model.
- posterior#
Posterior distribution for the operator matrices.
- transformer#
Preprocesser.
Methods:Map low-dimensional data to the original state space.
Set the
modeloperators to a new random draw from theposterioroperator distribution.Map high-dimensional data to its low-dimensional representation.
Calibrate the model to training data.
Calibrate the time-continuous model to training data, selecting the regularization hyperparameter(s) that minimize the sample mean training error while maintaining stability over the testing regime.
Calibrate the fully discrete model to training data, selecting the regularization hyperparameter(s) that minimize the sample mean training error while maintaining stability over the testing regime.
Draw from the operator posterior and evaluate the resulting model.
Project a high-dimensional state vector to the subset of the high-dimensional space that can be represented by the basis.