handson-ml2 icon indicating copy to clipboard operation
handson-ml2 copied to clipboard

I get "TypeError: 'module' object is not subscriptable" for cm module

Open Sunprince22 opened this issue 1 year ago • 2 comments

image

"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) in <cell line: 2>() 1 from matplotlib import cm ----> 2 cm[1, 1] / (cm[1, 1] + (cm[1, 0] + cm[0, 1]) / 2)

TypeError: 'module' object is not subscriptable

Sunprince22 avatar May 30 '23 05:05 Sunprince22