From first principles to machine learning methods in materials informatics