Skip to content
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

Number of decimal points #430

Open
sepandhaghighi opened this issue Mar 16, 2022 · 0 comments
Open

Number of decimal points #430

sepandhaghighi opened this issue Mar 16, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@sepandhaghighi
Copy link
Owner

Description

Control the number of decimal points in normalized mode.

  • print_normalized_matrix and plot methods

Steps/Code to Reproduce

>>> from pycm import *
>>> cm = ConfusionMatrix(matrix={"Class1": {"Class1": 1, "Class2":2}, "Class2": {"Class1": 0, "Class2": 5}}, digit=2)
>>> cm.print_normalized_matrix()

Expected Behavior

Predict       Class1        Class2        
Actual
Class1        0.33          0.66      

Class2        0.0           1.0   

Actual Behavior

Predict       Class1        Class2        
Actual
Class1        0.33333       0.66667       

Class2        0.0           1.0   

Operating System

Windows 10

Python Version

Python 3.8.0

PyCM Version (Use : pycm.__version__)

3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant