Molecular excited states through a machine learning lens