Skip to content

Commit c6e8787

Browse files
authored
improved example
use `plt.show()` for ploting example, like in chapter "Preprocess the data"
1 parent b7877f6 commit c6e8787

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

site/en/tutorials/keras/basic_classification.ipynb

+6-3
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,8 @@
805805
"plt.subplot(1,2,1)\n",
806806
"plot_image(i, predictions, test_labels, test_images)\n",
807807
"plt.subplot(1,2,2)\n",
808-
"plot_value_array(i, predictions, test_labels)"
808+
"plot_value_array(i, predictions, test_labels)",
809+
"plt.show()"
809810
],
810811
"execution_count": 0,
811812
"outputs": []
@@ -823,7 +824,8 @@
823824
"plt.subplot(1,2,1)\n",
824825
"plot_image(i, predictions, test_labels, test_images)\n",
825826
"plt.subplot(1,2,2)\n",
826-
"plot_value_array(i, predictions, test_labels)"
827+
"plot_value_array(i, predictions, test_labels)",
828+
"plt.show()"
827829
],
828830
"execution_count": 0,
829831
"outputs": []
@@ -856,7 +858,8 @@
856858
" plt.subplot(num_rows, 2*num_cols, 2*i+1)\n",
857859
" plot_image(i, predictions, test_labels, test_images)\n",
858860
" plt.subplot(num_rows, 2*num_cols, 2*i+2)\n",
859-
" plot_value_array(i, predictions, test_labels)\n"
861+
" plot_value_array(i, predictions, test_labels)\n",
862+
"plt.show()"
860863
],
861864
"execution_count": 0,
862865
"outputs": []

0 commit comments

Comments
 (0)