Learning from Multiphase Diagrams