Using multi-task learning to determine gas-phase metallicity of star-forming galaxies | Synapse