Optimizing Beam Dynamics in LHC with Active Deep Learning