https://medium.com/@monocosmo77/insights-from-hopfield-models-for-machine-learning-dynamics-part1-8ce6a6f89fd7