“Understanding electronic excitations in complex systems with machine learning”