Machine Learning Enhances Light-Beam Performance at the ALS