Phase Transition in Machine Learning