Data-driven approaches from ab initio methods in condensed matter to climate science