Optimizing disorder with machine learning to harness phase synchronization | Synapse