Convexity, internal representations and the statistical mechanics of neural networks | Synapse