Add missing outputs, fixes #164

This commit is contained in:
Aurélien Geron
2024-10-09 09:26:31 +13:00
parent f0783bad30
commit 9bd4f4c23a

View File

@@ -2215,7 +2215,9 @@
},
{
"cell_type": "code",
"execution_count": 78,
"metadata": {},
"outputs": [],
"source": [
"checkpoint_cb = tf.keras.callbacks.ModelCheckpoint(\"my_checkpoints.weights.h5\",\n",
" save_weights_only=True)\n",
@@ -2227,7 +2229,7 @@
},
{
"cell_type": "code",
"execution_count": 78,
"execution_count": 79,
"metadata": {},
"outputs": [
{
@@ -2294,7 +2296,7 @@
},
{
"cell_type": "code",
"execution_count": 79,
"execution_count": 80,
"metadata": {},
"outputs": [],
"source": [
@@ -2306,7 +2308,7 @@
},
{
"cell_type": "code",
"execution_count": 80,
"execution_count": 81,
"metadata": {},
"outputs": [
{
@@ -2350,7 +2352,7 @@
},
{
"cell_type": "code",
"execution_count": 81,
"execution_count": 82,
"metadata": {},
"outputs": [],
"source": [
@@ -2360,7 +2362,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 83,
"metadata": {
"tags": []
},
@@ -2371,7 +2373,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 84,
"metadata": {},
"outputs": [],
"source": [
@@ -2386,7 +2388,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": 85,
"metadata": {},
"outputs": [],
"source": [
@@ -2407,7 +2409,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 86,
"metadata": {},
"outputs": [
{
@@ -2506,7 +2508,7 @@
},
{
"cell_type": "code",
"execution_count": 86,
"execution_count": 87,
"metadata": {},
"outputs": [
{
@@ -2548,7 +2550,7 @@
},
{
"cell_type": "code",
"execution_count": 87,
"execution_count": 88,
"metadata": {},
"outputs": [
{
@@ -2592,7 +2594,7 @@
},
{
"cell_type": "code",
"execution_count": 88,
"execution_count": 89,
"metadata": {},
"outputs": [
{
@@ -2630,7 +2632,7 @@
},
{
"cell_type": "code",
"execution_count": 89,
"execution_count": 90,
"metadata": {},
"outputs": [],
"source": [
@@ -2670,7 +2672,7 @@
},
{
"cell_type": "code",
"execution_count": 90,
"execution_count": 91,
"metadata": {},
"outputs": [
{
@@ -2719,7 +2721,7 @@
},
{
"cell_type": "code",
"execution_count": 91,
"execution_count": 92,
"metadata": {},
"outputs": [],
"source": [
@@ -2730,7 +2732,7 @@
},
{
"cell_type": "code",
"execution_count": 92,
"execution_count": 93,
"metadata": {},
"outputs": [],
"source": [
@@ -2740,7 +2742,7 @@
},
{
"cell_type": "code",
"execution_count": 93,
"execution_count": 94,
"metadata": {},
"outputs": [],
"source": [
@@ -2750,7 +2752,7 @@
},
{
"cell_type": "code",
"execution_count": 94,
"execution_count": 95,
"metadata": {},
"outputs": [],
"source": [
@@ -2779,7 +2781,7 @@
},
{
"cell_type": "code",
"execution_count": 95,
"execution_count": 96,
"metadata": {},
"outputs": [
{
@@ -2812,7 +2814,7 @@
},
{
"cell_type": "code",
"execution_count": 96,
"execution_count": 97,
"metadata": {},
"outputs": [],
"source": [
@@ -2822,7 +2824,7 @@
},
{
"cell_type": "code",
"execution_count": 97,
"execution_count": 98,
"metadata": {},
"outputs": [
{
@@ -2834,7 +2836,7 @@
" 'optimizer': 'adam'}"
]
},
"execution_count": 97,
"execution_count": 98,
"metadata": {},
"output_type": "execute_result"
}
@@ -2846,7 +2848,7 @@
},
{
"cell_type": "code",
"execution_count": 98,
"execution_count": 99,
"metadata": {},
"outputs": [
{
@@ -2870,7 +2872,7 @@
},
{
"cell_type": "code",
"execution_count": 99,
"execution_count": 100,
"metadata": {},
"outputs": [
{
@@ -2879,7 +2881,7 @@
"0.8736000061035156"
]
},
"execution_count": 99,
"execution_count": 100,
"metadata": {},
"output_type": "execute_result"
}
@@ -2890,7 +2892,7 @@
},
{
"cell_type": "code",
"execution_count": 100,
"execution_count": 101,
"metadata": {},
"outputs": [
{
@@ -2928,7 +2930,7 @@
},
{
"cell_type": "code",
"execution_count": 101,
"execution_count": 102,
"metadata": {},
"outputs": [],
"source": [
@@ -2945,7 +2947,7 @@
},
{
"cell_type": "code",
"execution_count": 102,
"execution_count": 103,
"metadata": {},
"outputs": [],
"source": [
@@ -2957,7 +2959,7 @@
},
{
"cell_type": "code",
"execution_count": 103,
"execution_count": 104,
"metadata": {},
"outputs": [
{
@@ -2991,7 +2993,7 @@
},
{
"cell_type": "code",
"execution_count": 104,
"execution_count": 105,
"metadata": {},
"outputs": [
{
@@ -3026,7 +3028,7 @@
},
{
"cell_type": "code",
"execution_count": 105,
"execution_count": 106,
"metadata": {},
"outputs": [
{
@@ -3124,7 +3126,7 @@
},
{
"cell_type": "code",
"execution_count": 106,
"execution_count": 107,
"metadata": {},
"outputs": [],
"source": [
@@ -3140,7 +3142,7 @@
},
{
"cell_type": "code",
"execution_count": 107,
"execution_count": 108,
"metadata": {},
"outputs": [
{
@@ -3149,7 +3151,7 @@
"(60000, 28, 28)"
]
},
"execution_count": 107,
"execution_count": 108,
"metadata": {},
"output_type": "execute_result"
}
@@ -3167,7 +3169,7 @@
},
{
"cell_type": "code",
"execution_count": 108,
"execution_count": 109,
"metadata": {},
"outputs": [
{
@@ -3176,7 +3178,7 @@
"dtype('uint8')"
]
},
"execution_count": 108,
"execution_count": 109,
"metadata": {},
"output_type": "execute_result"
}
@@ -3194,7 +3196,7 @@
},
{
"cell_type": "code",
"execution_count": 109,
"execution_count": 110,
"metadata": {},
"outputs": [],
"source": [
@@ -3213,7 +3215,7 @@
},
{
"cell_type": "code",
"execution_count": 110,
"execution_count": 111,
"metadata": {},
"outputs": [
{
@@ -3244,7 +3246,7 @@
},
{
"cell_type": "code",
"execution_count": 111,
"execution_count": 112,
"metadata": {},
"outputs": [
{
@@ -3253,7 +3255,7 @@
"array([7, 3, 4, ..., 5, 6, 8], dtype=uint8)"
]
},
"execution_count": 111,
"execution_count": 112,
"metadata": {},
"output_type": "execute_result"
}
@@ -3271,7 +3273,7 @@
},
{
"cell_type": "code",
"execution_count": 112,
"execution_count": 113,
"metadata": {},
"outputs": [
{
@@ -3280,7 +3282,7 @@
"(5000, 28, 28)"
]
},
"execution_count": 112,
"execution_count": 113,
"metadata": {},
"output_type": "execute_result"
}
@@ -3291,7 +3293,7 @@
},
{
"cell_type": "code",
"execution_count": 113,
"execution_count": 114,
"metadata": {},
"outputs": [
{
@@ -3300,7 +3302,7 @@
"(10000, 28, 28)"
]
},
"execution_count": 113,
"execution_count": 114,
"metadata": {},
"output_type": "execute_result"
}
@@ -3318,7 +3320,7 @@
},
{
"cell_type": "code",
"execution_count": 114,
"execution_count": 115,
"metadata": {},
"outputs": [
{
@@ -3358,7 +3360,7 @@
},
{
"cell_type": "code",
"execution_count": 115,
"execution_count": 116,
"metadata": {},
"outputs": [],
"source": [
@@ -3379,7 +3381,7 @@
},
{
"cell_type": "code",
"execution_count": 116,
"execution_count": 117,
"metadata": {},
"outputs": [],
"source": [
@@ -3390,7 +3392,7 @@
},
{
"cell_type": "code",
"execution_count": 117,
"execution_count": 118,
"metadata": {},
"outputs": [],
"source": [
@@ -3411,7 +3413,7 @@
},
{
"cell_type": "code",
"execution_count": 118,
"execution_count": 119,
"metadata": {},
"outputs": [],
"source": [
@@ -3430,7 +3432,7 @@
},
{
"cell_type": "code",
"execution_count": 119,
"execution_count": 120,
"metadata": {},
"outputs": [
{
@@ -3456,7 +3458,7 @@
},
{
"cell_type": "code",
"execution_count": 120,
"execution_count": 121,
"metadata": {},
"outputs": [
{
@@ -3465,7 +3467,7 @@
"Text(0, 0.5, 'Loss')"
]
},
"execution_count": 120,
"execution_count": 121,
"metadata": {},
"output_type": "execute_result"
},
@@ -3501,7 +3503,7 @@
},
{
"cell_type": "code",
"execution_count": 121,
"execution_count": 122,
"metadata": {},
"outputs": [],
"source": [
@@ -3512,7 +3514,7 @@
},
{
"cell_type": "code",
"execution_count": 122,
"execution_count": 123,
"metadata": {},
"outputs": [],
"source": [
@@ -3526,7 +3528,7 @@
},
{
"cell_type": "code",
"execution_count": 123,
"execution_count": 124,
"metadata": {},
"outputs": [],
"source": [
@@ -3537,7 +3539,7 @@
},
{
"cell_type": "code",
"execution_count": 124,
"execution_count": 125,
"metadata": {},
"outputs": [
{
@@ -3546,7 +3548,7 @@
"PosixPath('my_mnist_logs/run_001')"
]
},
"execution_count": 124,
"execution_count": 125,
"metadata": {},
"output_type": "execute_result"
}
@@ -3559,7 +3561,7 @@
},
{
"cell_type": "code",
"execution_count": 125,
"execution_count": 126,
"metadata": {},
"outputs": [
{
@@ -3631,7 +3633,7 @@
},
{
"cell_type": "code",
"execution_count": 126,
"execution_count": 127,
"metadata": {},
"outputs": [
{
@@ -3647,7 +3649,7 @@
"[0.07079131156206131, 0.9799000024795532]"
]
},
"execution_count": 126,
"execution_count": 127,
"metadata": {},
"output_type": "execute_result"
}
@@ -3666,7 +3668,7 @@
},
{
"cell_type": "code",
"execution_count": 127,
"execution_count": 128,
"metadata": {},
"outputs": [
{