mirror of
https://github.com/harivansh-afk/ds1001_final.git
synced 2026-04-15 10:05:15 +00:00
couple of minor tweeks
This commit is contained in:
parent
1afa116d61
commit
8d855f3b6f
1 changed files with 2 additions and 1 deletions
|
|
@ -348,7 +348,8 @@
|
|||
"\n",
|
||||
"accuracy_results = {}\n",
|
||||
"\n",
|
||||
"for k in range(x, x): # Replace x with your desired range values, explain what is happening in this loop\n",
|
||||
"# Replace x with your desired range values, explain what is happening in this loop\n",
|
||||
"for k in range(x, x): \n",
|
||||
" knn_model = KNeighborsClassifier(n_neighbors=k)\n",
|
||||
" knn_model.fit(X_train, y_train)\n",
|
||||
" accuracy = knn_model.score(X_test, y_test)\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue