Machine learning for efficient generation of universal photonic quantum computing resources | Synapse