-
-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
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
ROC curve plotting and confusion matrix display issues #502
Comments
Hi @huhang14, I hope you are doing well. We are happy you found Pycm useful for your work. import numpy as np
from pycm import ROCCurve
import matplotlib.pyplot as plt
crv = ROCCurve(
actual_vector=np.array([1, 1, 2, 2]),
probs=np.array([[0.1, 0.9], [0.4, 0.6], [0.35, 0.65], [0.8, 0.2]]),
classes=[2, 1])
crv.plot(classes=[2])
plt.show() You may be right about
I don't know about this 😕 |
Thank you for your answer, it's very helpful for me!
After testing, I can get a normal display with the same code on windows, but not on ubuntu.
Sadly, this code also does not display the confusion matrix properly. So this probably has nothing to do with pycm, but is caused by something else. Thanks again for your answer. |
Description
Hello sepandhaghighi, thank you for writing such a convenient and useful library. I have two questions. can pycm plot ROC curves? I didn't find anything about it in the documentation. Also, I can display the confusion matrix normally under windows system, but it displays abnormally under linux system, do you know what causes it?
pycm version: 3.8
The text was updated successfully, but these errors were encountered: