Machine learning for design, phase transformation and mechanical properties of alloys