This is an overview over the data and the scripts published with Franziska Marie Herrmann et al 2026 Mach. Learn.: Sci. Technol. 7 045031 "Tuning of self-truncated ionization injection with Bayesian optimization" (DOI: 10.1088/2632-2153/ae87f2 )

Scripts

This data publication contains three Jupyter Notebooks (Bayesian_optimization_on_GP.ipynb, BOgP_window_25_random_init_tod_no_pressure_beta1.ipynb, Tuning_of_stii_with_BO.ipynb).

Tuning of stii with BO

This script contains the code used to analyse and visualize the preprocessed data from the online diagnostics (SPIDER, online Nearfield, 3 camera system, electron spectrometer). It uses the datafiles of the experiment days (data_2025-09-04 LWFA.xlsx, data_2025-08-19 LWFA.xlsx) as well as the shotlogs where the experiment operators manually add the experiment parameters (Shotlog-2025-08-19.xlsx, Shotlog-2025-09-04.xlsx). For the analysis of the noise present in the experiment, it uses the database allpoints_with_noise_for_training.xlsx containing all relevant input and output data as well as measurements derived from the online diagnostics. The plotting of the electron spectra requires the lineout_data_files. For the reproducibility analysis of the Bayesian optimization with different parameters, the indices_result files and window2_beta files are required.

BOgP_window_25_random_init_tod_no_pressure_beta1

Original script used in experiment to predict the next laser configuration. It does not use prior knowledge, a beta hyperparameter of 1 and a gaussian window of 25 MeV width as an objective function. To initialize the Bayesian optimization, it proposes five random parameter configurations, pulls the results from the online electron spectrometer and averages over 10 shots per configuration. After initialization, the Bayesian optimization algorithm proposes a configuration, which has to be entered manually in the system. The results are again retrieved automatically and avaraged over 10 shots before a new configuration is proposed. The model needs to be stopped manually after the desired number of iterations.

Bayesian_optimization_on_GP.ipynb

Script used to do a reproducibility analysis of the Bayesian optimization. Instead of direct measurement, the proposed setpoint from the Bayesian optimization is translated to "real-world" parameters, noise added and then translated to indices of the grid on which the Gaussian process was evaluated to obtain a measurement. Prior to the optimization, a Gaussian process surrogate model was trained with the totality of the data used in this paper (allpoints_with_noise_for_training.xlsx ), predicting measurement results within a grid of 20 points in all six parameter dimensions. Each hyperparameter configuration and objective function is evaluated through 100 Models who each do 5 random initialization measurements and then 20 iterations of the Bayesian optimization.

Data

allpoints_with_noise_for_training.xlsx

All measurements taken on the 19.08.2025 and 04.09.2025. This file contains the input parameters and the preprocessed data from the online diagnostics relevant for this paper. Additional parameters and raw data are available from the authors upon reasonable request.

data_2025-08-19 LWFA.xlsx, data_2025-09-04 LWFA.xlsx

Input data of both experiment days

Shotlog-2025-09-04.xlsx, Shotlog-2025-08-19.xlsx

Shotlogs, in which the experiment operators manually enter experiment parameters

lineout_data

Data containing the electron spectra used in the paper. The first column corresponds to the energy in MeV, the second one to the charge density (pC/MeV) within the energy bin.

indices result and window2 files

The indices of the results of the Bayesian optimization reproducibility analysis stating the coordinates within the 6D parameterspace to be able to take a measurement from the Gaussian process.