A walk in the statistical mechanical formulation of neural networks