Scripts for calibrating simulation data to experimental observations using an embedded discrepancy Gaussian Process (GP) emulator.
This repository implements a Bayesian calibration framework that:
- Builds a GP emulator of simulator outputs
- Embeds a model discrepancy term
- Calibrates simulation parameters to observational data using MCMC
The workflow is driven by main.py and configured via config.json.
This project uses a Python virtual environment.
python3 -m venv venv
macOS/Linux
source venv/bin/activate
Windows
venv\Scripts\activate
pip install -r requirements.txt
Core dependencies include:
- numpy
- scipy
- matplotlib
- pandas
- scikit-learn
To execute the integrated delta calibration routine:
python3 main.py
All runtime behavior is controlled through config.json.
integratedDelta_calibration/
│
├── main.py
├── config.json
├── requirements.txt
│
├── modelData/
│ ├── appDomain.txt
│ ├── modelPredictions.txt
│ └── thetaVals.txt
│
└── observationData/
├── appDomain.txt
└── observationData.txt
Input data is organized into two subdirectories:
Simulator outputs to be emulated and calibrated.
appDomain.txt— Application domain locationsmodelPredictions.txt— Simulator outputsthetaVals.txt— Parameter values corresponding to simulations
Experimental data to be matched.
appDomain.txt— Observation domain locationsobservationData.txt— Measured responses
All .txt files must:
- Be column-formatted
- Include a header row labeling each column
- Use the delimiter specified in
config.json
The provided template files illustrate formatting for MD (observational) and DDD (simulator) predictions of
All calibration settings are controlled via config.json.
Controls MCMC behavior:
N_mcmc— Total MCMC iterationsN_burn— Burn-in samplesN_samp_post— Posterior samples retained
- Input file delimiter
- Controls which plots and diagnostics are generated
(In development)
Controls output of serialized model objects for downstream analysis.
- The virtual environment directory (
venv/) should not be committed to the repository. - Only
requirements.txtis required to reproduce the environment.
If you use this repository or the associated methodology in your research, please cite the following paper.
Bayesian Model Calibration with Integrated Discrepancy: Addressing Inexact Dislocation Dynamics Models Liam Myhill, Enrique Martinez Saez, Sez Russcher (2026)
Paper: https://arxiv.org/abs/2603.11960
@misc{myhill2026bayesianmodelcalibrationintegrated,
title = {Bayesian Model Calibration with Integrated Discrepancy: Addressing Inexact Dislocation Dynamics Models},
author = {Myhill, Liam and Martinez Saez, Enrique and Russcher, Sez},
year = {2026},
eprint = {2603.11960},
archivePrefix = {arXiv},
primaryClass = {stat.ME},
url = {https://arxiv.org/abs/2603.11960}
}This repository includes a CITATION.cff file so that GitHub can generate a "Cite this repository" button automatically.