Chapter 5 Hopfield Network code is broken.
Opened this issue · 0 comments
jemzipx commented
It looks like the plotting mechanism used in this code is quite old and deprecated. Here is the error:
/usr/lib/python3.7/site-packages/IPython/core/display.py:701: UserWarning: Consider using IPython.display.IFrame instead
warnings.warn("Consider using IPython.display.IFrame instead")
qt5ct: using qt5ct plugin
Traceback (most recent call last):
File "main.py", line 106, in <module>
axarr[p].imshow(patterns[p].reshape((side,side)), cmap="binary")
TypeError: 'AxesSubplot' object is not subscriptable