Skip to content

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:

  1. load user-provided whitespace-delimited tables;
  2. construct one QoIDataset per observable;
  3. train local Gaussian-process surrogate models;
  4. build a LearningProblem and sample the posterior;
  5. 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

The committed .dat values are illustrative synthetic data. Replace them with your own tables and adapt the QoIDataset construction for a new application.