Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with knn
#1
These are my k values and their corresponding accuracy_score.
k = 3 --> 95.2127659574468
k = 4 --> 96.27659574468085
k = 5 --> 95.74468085106383
k = 6 --> 96.27659574468085
k = 7 --> 96.80851063829788
k = 8 --> 96.27659574468085
k = 9 --> 95.74468085106383
k = 10 --> 96.27659574468085
k = 11 --> 96.80851063829788

Which one is the best k value?
Reply
#2
The higher the better. However, the answer on the question depends on how these values were computed. Did you use test sample? Is your classification problem well balanced or not? Since the results of computations include the same values of accuracy score for different k, I suspect that there are too few / insufficient data points in your test set...
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020