Machine learning Calabi-Yau metrics