removed best_k = k
This commit is contained in:
@@ -2390,7 +2390,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 45,
|
"execution_count": null,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"id": "ZUmotr7hKPSE"
|
"id": "ZUmotr7hKPSE"
|
||||||
},
|
},
|
||||||
@@ -2446,7 +2446,7 @@
|
|||||||
" best_accuracy = this_cv_accuracy\n",
|
" best_accuracy = this_cv_accuracy\n",
|
||||||
" best_k = k\n",
|
" best_k = k\n",
|
||||||
"# assign best value of k to best_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",
|
"# you'll need to modify the loop above to find and remember the real best_k\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(f\"best_k = {best_k} yields the highest average cv accuracy.\") # print the best one\n",
|
"print(f\"best_k = {best_k} yields the highest average cv accuracy.\") # print the best one\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user