Calabi-Yau Metrics, Energy Functionals and Machine-Learning