romtools.workflows.inverse.vi_sample_reuse#

Importance-sampling sample reuse for VI and MFVI.

This module implements an opt-in ABRIS-style reuse layer around ROMTools’ existing VI drivers. Expensive high-fidelity evaluations are cached in batches together with the variational distribution that generated them. A bounded inner sampling loop adds fresh batches until the reuse diagnostics pass, then forms the update from the complete retained archive.

Functions

mf_vi_with_auto_rom(*args[, sample_reuse_config])

Auto-ROM MFVI wrapper with the same sample-reuse configuration.

run_mf_vi(*args[, sample_reuse_config])

Run MFVI with optional importance-sampling reuse of the HF archive.

run_vi(*args[, sample_reuse_config])

Run VI, optionally reusing historical model evaluations through MIS.

romtools.workflows.inverse.vi_sample_reuse.mf_vi_with_auto_rom(*args, sample_reuse_config=None, **kwargs)[source]#

Auto-ROM MFVI wrapper with the same sample-reuse configuration.

Parameters:

sample_reuse_config (VISampleReuseConfig | None)

romtools.workflows.inverse.vi_sample_reuse.run_mf_vi(*args, sample_reuse_config=None, **kwargs)[source]#

Run MFVI with optional importance-sampling reuse of the HF archive.

Parameters:

sample_reuse_config (VISampleReuseConfig | None)

romtools.workflows.inverse.vi_sample_reuse.run_vi(*args, sample_reuse_config=None, **kwargs)[source]#

Run VI, optionally reusing historical model evaluations through MIS.

Parameters:

sample_reuse_config (VISampleReuseConfig | None)