loicmarie / sign-language-alphabet-recognizer

Simple sign language alphabet recognizer using Python, openCV and tensorflow for training Inception model (CNN classifier).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I plot confusion matrix

zerenkin opened this issue · comments

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,
Did you find how to to plot confusion matrix for this model ?
if so, please be kind enough to share it with me.

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.