core.HasVersions
core.HasVersions()A posterior that can tell when it no longer describes the model.
For a weight-space posterior, mean_outputs, outputs and sample_outputs call check_versions before the forward. A function-space posterior calls it itself, in at. It is optional: a posterior without it is not checked.
Methods
| Name | Description |
|---|---|
| check_versions | Raise if a parameter the posterior was built from changed in place since the fit. |
check_versions
core.HasVersions.check_versions()Raise if a parameter the posterior was built from changed in place since the fit.
An implementation can compare the version counters taken at fit time (param_versions) with the current ones.
Raises
| Name | Type | Description |
|---|---|---|
| RuntimeError | A parameter changed in place since the fit. |