sign-language-alphabet-recognizer icon indicating copy to clipboard operation
sign-language-alphabet-recognizer copied to clipboard

How can I plot confusion matrix

Open zerenkin opened this issue 6 years ago • 2 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?

zerenkin avatar Jan 02 '19 08:01 zerenkin

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 avatar Nov 24 '20 01:11 ChamiJ

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.

ChamiJ avatar Nov 24 '20 01:11 ChamiJ