Statistical Mechanics and Machine Learning