A hole-transporting layer for perovskite solar cells with near-record efficiency has been developed using a machine learning ...