Text this: Applying the machine learning methods to determine the linear optics parameters in the ThomX collector ring