Learning targeted materials properties from data