TOWARDS PRECISION PHOTOMETRIC TYPE IA SUPERNOVA COSMOLOGY WITH MACHINE LEARNING