Neural Network Statistical Mechanics