From 4777fbbdc8e18554c9e92e8099d69b4e44762d22 Mon Sep 17 00:00:00 2001 From: Benjamin Adovasio Date: Sun, 29 Mar 2026 20:26:31 -0400 Subject: [PATCH] removed best_k = k --- HW 5/Iris_knn_W2025_template.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HW 5/Iris_knn_W2025_template.ipynb b/HW 5/Iris_knn_W2025_template.ipynb index 57c8611..f4b0e54 100644 --- a/HW 5/Iris_knn_W2025_template.ipynb +++ b/HW 5/Iris_knn_W2025_template.ipynb @@ -2390,7 +2390,7 @@ }, { "cell_type": "code", - "execution_count": 45, + "execution_count": null, "metadata": { "id": "ZUmotr7hKPSE" }, @@ -2446,7 +2446,7 @@ " best_accuracy = this_cv_accuracy\n", " best_k = k\n", "# assign best value of k to best_k\n", - "best_k = k # *** AT THE MOMENT THIS IS INCORRECT ***\n", + "#best_k = k # *** AT THE MOMENT THIS IS INCORRECT ***\n", "# you'll need to modify the loop above to find and remember the real best_k\n", "\n", "print(f\"best_k = {best_k} yields the highest average cv accuracy.\") # print the best one\n",