hopfield.py (.txt): An introductory implementation of hopfield's neural network. p_init and choose how many time you want to train the thing in the x variable. Then, you probably want to check if a pattern (p) refers to the learned pattern or not?