Arbitrary Data Walkthrough¶
Source files:
Goal¶
This notebook-first example shows how to use BFF when simulation results and reference targets already exist outside the built-in trajectory-analysis workflow. It calibrates two water-like Lennard-Jones parameters against realistic synthetic density, enthalpy-of-vaporization, and diffusion data.
No GROMACS installation is required. Fitting runs on the CPU; learning uses CUDA when available.
Run¶
Install the optional notebook tools once:
pip install "bfflearn[notebook]"
cd examples/arbitrary-data
jupyter lab
Open arbitrary-data.ipynb and execute it from top to bottom. The notebook
demonstrates the complete data-facing workflow:
- load user-provided whitespace-delimited tables;
- construct one
QoIDatasetper observable; - train local Gaussian-process surrogate models;
- build a
LearningProblemand sample the posterior; - plot the corner plot and the QoI-attributed marginals, which color each posterior marginal by the local contribution of density, enthalpy of vaporization, and diffusion.
The datasets can also be written with dataset.write(...) and passed to
bff fit-lgp. Generated files are written under generated/.
Input Tables¶
- raw-data/simulation-results.dat contains one externally evaluated parameter set per row.
- raw-data/experimental-targets.dat contains the target value and uncertainty for each observable.
- The inline
Specsdictionary in the notebook defines the parameter bounds used during posterior learning.
The committed .dat values are illustrative synthetic data. Replace them with
your own tables and adapt the QoIDataset construction for a new application.