Machine-learning optimal control pulses in an optical quantum memory experiment | Synapse