Skip to content

dianamJLAB/AIEC_CandC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIEC_CandC

AI for Experiment Controls Project

For the first time, the Jefferson Lab GlueX Central Drift Chamber was autonomously calibrated and controlled using machine learning while recording cosmic ray tracks. A Gaussian Process (GP), implemented using the scikit-learn library, was trained to predict the gain correction factor and to inform a high voltage setting that will stabilize the CDC gain in response to changing environmental conditions. Using ML to perform near real time calibrations significantly reduces the required computing resources typically used in the traditional, post hoc calibration process.

The Repo Contains:

D-data-CDC directory:

contains csv data files used for training, test, and evaluation of the GP

  • 2020_GCF_All.csv: features and target for 2020 runs
  • 2021_2020_GCF_All.csv: features and target for 2020 and 2021 runs
  • Balanced_2020_GCF_Test.csv: pressure-balanced test data set of 2020 runs
  • Balanced_2020_GCF_Train.csv: pressure-balanced train data set of 2020 runs
  • Balanced_2021_2020_GCF_Test.csv: pressure-balanced test data set of 2020 and 2021 runs
  • Balanced_2021_2020_GCF_Train.csv: pressure-balanced train data set of 2020 and 2021 runs
  • preds_sklearnGPR_Trained20202021.csv: features, targets, and predictions for 2020, 2021 data
  • preds_withstdv.csv: features, targets, and predictions for range of pressure and current with temp set to 299.4
  • surface_plot_data_big_2.csv: created features for range of pressures, temp and currents to use for model evaluation.

D-ml-CDC directory

  • GCF_GPR_BalancedPressureTests.ipynb: notebook demonstrating training and evaluating the sklearn GP model
  • create_sklearn_gpr.py: sklearn GP class used to create and train a GP model

utilities / CDC_control_ai / cosmics

  • cdc_loadmodel.py: used in cosmics run to load the sklearn GP model - uses files in the d_cdc_modelneeds directory
  • cdc_runai.py: used in the cosmics run to predict used the loaded GP model

About

AIEC project: calibration and control

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published