Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de1e984

Browse files
author
codebasics
committed
knn
1 parent 906d8e8 commit de1e984

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

‎ML/17_knn_classification/Exercise/knn_exercise_digits.ipynb‎ renamed to ‎ML/17_knn_classification/Exercise/knn_exercise_digits_solution.ipynb‎

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@
964964
"cell_type": "code",
965965
"execution_count": 23,
966966
"metadata": {
967-
"scrolled": true
967+
"scrolled": false
968968
},
969969
"outputs": [
970970
{
@@ -983,23 +983,10 @@
983983
]
984984
},
985985
{
986-
"cell_type": "code",
987-
"execution_count": 70,
986+
"cell_type": "markdown",
988987
"metadata": {},
989-
"outputs": [
990-
{
991-
"data": {
992-
"text/plain": [
993-
"0.97407407407407409"
994-
]
995-
},
996-
"execution_count": 70,
997-
"metadata": {},
998-
"output_type": "execute_result"
999-
}
1000-
],
1001988
"source": [
1002-
"linear_model.score(X_test,y_test)"
989+
"**I tried various values of K manually and K=5 seem to be giving me the best score**"
1003990
]
1004991
},
1005992
{

‎ML/17_knn_classification/knn_classification_tutorial.ipynb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@
11311131
"source": [
11321132
"**Do not forget to work on exercise, exercise link is below** \n",
11331133
"\n",
1134-
"\n"
1134+
"https://github.com/codebasics/py/blob/master/ML/17_knn_classification/knn_exercise.md\n"
11351135
]
11361136
}
11371137
],

‎ML/17_knn_classification/knn_exercise.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ from sklearn.datasets load digits dataset and do following
33
1. Plot confusion matrix
44
1. Plot classification report
55

6-
[Solution link]()
6+
[Solution link](https://github.com/codebasics/py/blob/master/ML/17_knn_classification/Exercise/knn_exercise_digits_solution.ipynb)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /