handson-ml2
handson-ml2 copied to clipboard
I get "TypeError: 'module' object is not subscriptable" for cm module
"3rd Chapter - Classification"
from matplotlib import cm cm[1, 1] / (cm[1, 1] + (cm[1, 0] + cm[0, 1]) / 2)
for the above code I get this typerror. It will so helpful if you could help me resolve this issue with my system.
TypeError Traceback (most recent call last)
TypeError: 'module' object is not subscriptable