We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"3rd Chapter - Classification"
from matplotlib import cm cm[1, 1] / (cm[1, 1] + (cm[1, 0] + cm[0, 1]) / 2)
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
The text was updated successfully, but these errors were encountered:
The cm mentioned in the chapter is referring to confusion_matrix (which is imported from sklearn.metrics), not matplotlib.cm.
cm
confusion_matrix
sklearn.metrics
matplotlib.cm
Sorry, something went wrong.
Thank you so much @rupeshchiluka001
No branches or pull requests
"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
The text was updated successfully, but these errors were encountered: