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

How can I plot confusion matrix #13

Open
zerenkin opened this issue Jan 2, 2019 · 2 comments
Open

How can I plot confusion matrix #13

zerenkin opened this issue Jan 2, 2019 · 2 comments

Comments

@zerenkin
Copy link

zerenkin commented Jan 2, 2019

I tried to use code below to plot confusion matrix:

print('Final test accuracy = %.1f%% (N=%d)' % (test_accuracy * 100, len(test_bottlenecks)))
confusion = tf.confusion_matrix(labels=test_ground_truth, predictions=predictions, num_classes=class_count)
confusion_matrix_np = sess.run(confusion, feed_dict={bottleneck_input: test_bottlenecks, ground_truth_input: test_ground_truth})

But it doesn't work.
How can I plot confusion matrix?

@ChamiJ
Copy link

ChamiJ commented Nov 24, 2020

Hi,
Did you find how to to plot confusion matrix for this model ?
if so, please be kind enough to share it with me.

@ChamiJ
Copy link

ChamiJ commented Nov 24, 2020

I tried to use code below to plot confusion matrix:

print('Final test accuracy = %.1f%% (N=%d)' % (test_accuracy * 100, len(test_bottlenecks)))
confusion = tf.confusion_matrix(labels=test_ground_truth, predictions=predictions, num_classes=class_count)
confusion_matrix_np = sess.run(confusion, feed_dict={bottleneck_input: test_bottlenecks, ground_truth_input: test_ground_truth})

But it doesn't work.
How can I plot confusion matrix?

Hi zerenkin,
Did you find how to to plot confusion matrix for this model ?
if so, please be kind enough to share it with me.

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

No branches or pull requests

2 participants