"Let's look at the 0th image, predictions, and prediction array. "
]
},
{
"metadata": {
"id": "HV5jw-5HwSmO",
"colab_type": "code",
"colab": {}
},
"cell_type": "code",
"source": [
"plot_fig_and_predarray(0)"
],
"execution_count": 0,
"outputs": []
},
{
"metadata": {
"id": "Ko-uzOufSCSe",
"colab_type": "code",
"colab": {}
},
"cell_type": "code",
"source": [
"plot_fig_and_predarray(12)"
],
"execution_count": 0,
"outputs": []
},
},
{
{
"metadata": {
"metadata": {
...
@@ -853,41 +948,29 @@
...
@@ -853,41 +948,29 @@
},
},
"cell_type": "markdown",
"cell_type": "markdown",
"source": [
"source": [
"Let's plot several images with their predictions. Correct prediction labels are green and incorrect prediction labels are red."
"Let's plot several images with their predictions. Correct prediction labels are blue and incorrect prediction labels are red. The number gives the percent (out of 100) for the predicted label. Note that it can be wrong even when very confident. "
]
]
},
},
{
{
"metadata": {
"metadata": {
"id": "YGBDAiziCaXR",
"id": "hQlnbqaw2Qu_",
"colab_type": "code",
"colab_type": "code",
"colab": {
"colab": {}
"autoexec": {
"startup": false,
"wait_interval": 0
}
}
},
},
"cell_type": "code",
"cell_type": "code",
"source": [
"source": [
"# Plot the first 25 test images, their predicted label, and the true label\n",
"# Plot the first X test images, their predicted label, and the true label\n",
"# Color correct predictions in green, incorrect predictions in red\n",
"# Color correct predictions in blue, incorrect predictions in red\n",