Skip to content

Commit b326ef2

Browse files
committed
improved example, basic_classification
added `plt.show()` for ploting examples, like in chapter "Preprocess the data"
1 parent 4d6621c commit b326ef2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

site/en/r2/tutorials/keras/basic_classification.ipynb

+7-4
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,8 @@
818818
"plt.subplot(1,2,1)\n",
819819
"plot_image(i, predictions, test_labels, test_images)\n",
820820
"plt.subplot(1,2,2)\n",
821-
"plot_value_array(i, predictions, test_labels)"
821+
"plot_value_array(i, predictions, test_labels)\n",
822+
"plt.show()"
822823
],
823824
"execution_count": 0,
824825
"outputs": []
@@ -836,7 +837,8 @@
836837
"plt.subplot(1,2,1)\n",
837838
"plot_image(i, predictions, test_labels, test_images)\n",
838839
"plt.subplot(1,2,2)\n",
839-
"plot_value_array(i, predictions, test_labels)"
840+
"plot_value_array(i, predictions, test_labels)\n",
841+
"plt.show()"
840842
],
841843
"execution_count": 0,
842844
"outputs": []
@@ -869,7 +871,8 @@
869871
" plt.subplot(num_rows, 2*num_cols, 2*i+1)\n",
870872
" plot_image(i, predictions, test_labels, test_images)\n",
871873
" plt.subplot(num_rows, 2*num_cols, 2*i+2)\n",
872-
" plot_value_array(i, predictions, test_labels)\n"
874+
" plot_value_array(i, predictions, test_labels)\n",
875+
"plt.show()"
873876
],
874877
"execution_count": 0,
875878
"outputs": []
@@ -999,4 +1002,4 @@
9991002
]
10001003
}
10011004
]
1002-
}
1005+
}

0 commit comments

Comments
 (0)