diff --git a/M1/Statistical Learning/TP2_KNN.ipynb b/M1/Statistical Learning/TP2_KNN.ipynb index bfab100..f8423c3 100644 --- a/M1/Statistical Learning/TP2_KNN.ipynb +++ b/M1/Statistical Learning/TP2_KNN.ipynb @@ -2075,10 +2075,8 @@ }, { "metadata": { - "jupyter": { - "is_executing": true - }, "ExecuteTime": { + "end_time": "2025-02-07T16:33:20.674476Z", "start_time": "2025-02-07T16:32:25.251727Z" } }, @@ -2097,9 +2095,19 @@ "text": [ "Accuracy score: 0.9693506493506493\n" ] + }, + { + "data": { + "text/plain": [ + "'5'" + ] + }, + "execution_count": 38, + "metadata": {}, + "output_type": "execute_result" } ], - "execution_count": null + "execution_count": 38 }, { "cell_type": "markdown", @@ -2120,8 +2128,8 @@ "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T09:56:15.719499Z", - "start_time": "2025-02-05T09:56:02.483518Z" + "end_time": "2025-02-07T16:33:33.791102Z", + "start_time": "2025-02-07T16:33:20.708161Z" } }, "source": [ @@ -2130,14 +2138,14 @@ "(X_train, y_train), (X_test, y_test) = tf.keras.datasets.cifar10.load_data()" ], "outputs": [], - "execution_count": 75 + "execution_count": 39 }, { "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T09:56:25.552086Z", - "start_time": "2025-02-05T09:56:25.549610Z" + "end_time": "2025-02-07T16:33:33.819221Z", + "start_time": "2025-02-07T16:33:33.816280Z" } }, "source": [ @@ -2150,19 +2158,19 @@ "numpy.ndarray" ] }, - "execution_count": 76, + "execution_count": 40, "metadata": {}, "output_type": "execute_result" } ], - "execution_count": 76 + "execution_count": 40 }, { "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T09:56:27.171373Z", - "start_time": "2025-02-05T09:56:27.168777Z" + "end_time": "2025-02-07T16:33:33.847663Z", + "start_time": "2025-02-07T16:33:33.844954Z" } }, "source": [ @@ -2175,12 +2183,12 @@ "((50000, 32, 32, 3), (50000, 1))" ] }, - "execution_count": 77, + "execution_count": 41, "metadata": {}, "output_type": "execute_result" } ], - "execution_count": 77 + "execution_count": 41 }, { "cell_type": "markdown", @@ -2200,8 +2208,8 @@ "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T09:56:28.805816Z", - "start_time": "2025-02-05T09:56:28.802933Z" + "end_time": "2025-02-07T16:33:33.879318Z", + "start_time": "2025-02-07T16:33:33.875930Z" } }, "source": [ @@ -2216,19 +2224,19 @@ "(50000,)" ] }, - "execution_count": 78, + "execution_count": 42, "metadata": {}, "output_type": "execute_result" } ], - "execution_count": 78 + "execution_count": 42 }, { "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T09:56:29.943407Z", - "start_time": "2025-02-05T09:56:29.941183Z" + "end_time": "2025-02-07T16:33:33.910196Z", + "start_time": "2025-02-07T16:33:33.904771Z" } }, "source": [ @@ -2241,19 +2249,19 @@ "array([6, 9, 9, 4, 1, 1, 2, 7, 8, 3], dtype=uint8)" ] }, - "execution_count": 79, + "execution_count": 43, "metadata": {}, "output_type": "execute_result" } ], - "execution_count": 79 + "execution_count": 43 }, { "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T09:56:36.560293Z", - "start_time": "2025-02-05T09:56:36.510888Z" + "end_time": "2025-02-07T16:33:33.980676Z", + "start_time": "2025-02-07T16:33:33.935546Z" } }, "source": [ @@ -2273,14 +2281,14 @@ "output_type": "display_data" } ], - "execution_count": 81 + "execution_count": 44 }, { "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T09:56:38.807788Z", - "start_time": "2025-02-05T09:56:38.805719Z" + "end_time": "2025-02-07T16:33:34.007006Z", + "start_time": "2025-02-07T16:33:34.004187Z" } }, "source": [ @@ -2296,7 +2304,7 @@ ] } ], - "execution_count": 82 + "execution_count": 45 }, { "cell_type": "markdown", @@ -2309,8 +2317,8 @@ "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T09:56:40.790210Z", - "start_time": "2025-02-05T09:56:40.539638Z" + "end_time": "2025-02-07T16:33:34.260397Z", + "start_time": "2025-02-07T16:33:34.032213Z" } }, "source": [ @@ -2324,12 +2332,12 @@ "(50000, 3072)" ] }, - "execution_count": 83, + "execution_count": 46, "metadata": {}, "output_type": "execute_result" } ], - "execution_count": 83 + "execution_count": 46 }, { "cell_type": "markdown", @@ -2346,8 +2354,8 @@ "cell_type": "code", "metadata": { "ExecuteTime": { - "end_time": "2025-02-05T10:01:24.378825Z", - "start_time": "2025-02-05T10:01:07.927639Z" + "end_time": "2025-02-07T16:33:50.494818Z", + "start_time": "2025-02-07T16:33:34.284326Z" } }, "source": [ @@ -2372,12 +2380,12 @@ "0.3303" ] }, - "execution_count": 93, + "execution_count": 47, "metadata": {}, "output_type": "execute_result" } ], - "execution_count": 93 + "execution_count": 47 } ], "metadata": {