Inferring colloidal interaction from scattering by machine learning