Skip to content

Decimal points in plot method #451

@tanjiu

Description

@tanjiu

Description

百分比的混淆矩阵计算出来的位数太长,保存下来的图片数据是重合的,请问是否有办法设置一下小数点位数?真的十分感谢解答!!!
image

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__)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions