Text this: Designing and understanding light-harvesting devices with machine learning