Understanding Machine Learning via Exactly Solvable Statistical Physics Models