Machine learning and materials science: ab initio screening to microstructure analysis