-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Decimal points in plot method #451
Comments
I wonder if we wanted to add this particular feature in the near future, right @sepandhaghighi ? |
|
This is another issue. We should take care of it, too. |
This is a bug that we have to fix one day. But I also think that we will work on it in the next 3- 4 versions. Similar to #430 |
I think in problems with a large number of classes, it is not possible to display the numbers in the table (like Example 7). This is not a PyCM problem. |
It may be a good workaround if we add a parameter for font size. This would help us. |
我的混淆矩阵用18类进行测试的,然后我发现如果可以把plot.show()的图片最大化,基本上可以正常显示,百分比的图只需要控制一下小数点位数就可以了,不过这需要每次都要手动点击右上角的最大化按钮,我之前曾经尝试过自动将图片最大化保存,但是最终没有成功,我想你们可不可以加一个最大化显示图片的功能,这样就完美了,我的编程能力实在是太菜了,不得已向你们提出这个请求,非常感谢如果你们能够接受这个建议的话。最大化图片的实际显示效果如下: |
Nice approach! We should test it. |
我认为让图片最大化保存也是一个更合适的方法,这样可以避免字体过小显示效果不好的情况 |
Description
百分比的混淆矩阵计算出来的位数太长,保存下来的图片数据是重合的,请问是否有办法设置一下小数点位数?真的十分感谢解答!!!
Steps/Code to Reproduce
这是我的代码:
cm = ConfusionMatrix(actual_vector=y_trueLabel, predict_vector=y_predictLabel, digit=4)
cm.plot(cmap=plt.cm.Reds, normalized=True, number_label=True, plot_lib="matplotlib")
plt.xticks(rotation=45)
plt.savefig(fname="C:\Users\Graduate01\Desktop\222\%s" % '235')
Expected Behavior
Actual Behavior
Operating System
Python Version
PyCM Version (Use :
pycm.__version__
)The text was updated successfully, but these errors were encountered: