离散型hopfield神经网络.参考自http://web.cs.ucla.edu/~rosen/161/notes/hopfield.html实现的草稿版本: # http://web.cs.ucla.edu/~rosen/161/notes/hopfield.html attractors = np.array([[0, 1, 1, 0, 1], [1, 0, 1, 0, 1]]) print('attractors:\n', attractors) weight_matrix = np.z…