Scientist for machine learning and control of large-scale accelerators