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

Update function make_confusion_metrix to have vertical xticklables #674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jaypat7828
Copy link

Thank you much for guiding through the Tensorflow course very systematically. I have learned a good deal.

I found the 'make_confusion_matrix' function very useful.

here is the scenario:

`y_true = ["countryman rambo", "neighboring man jumbo", "countryman rambo", "countryman rambo", "neighboring man jumbo", "birdman", "superman", "logicalman"]
y_pred = ["neighboring man jumbo", "neighboring man jumbo", "countryman rambo", "countryman rambo", "neighboring man jumbo", "countryman rambo", "superman", "logicalman"]
labels = ["countryman rambo", "neighboring man jumbo", "birdman", "superman", "logicalman"]

make_confusion_matrix_old(
y_true,
y_pred,
labels,
figsize=(8, 8),
)`

image

when the confusion matrix comes out nicely but the Xlabes needs some help.

I have updated the code and here is the new version.

image

Thanks,

Jaydip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant