ageron / ageron/handson-ml2

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

Open
#616 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
30k
Forks
13.1k
PR merge metrics
No merged PRs in 30d

Description

![image](https://github.com/ageron/handson-ml2/assets/89358483/4acb5e3c-6d93-4e97-b175-1748e9169fb4)

"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)
[](https://localhost:8080/#) in ()
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.