Machine Learning for the Control of Collective Dynamics in Particle-Laden Flows