Python Forum
How to find the accuracy vs number of neighbours for KNN
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find the accuracy vs number of neighbours for KNN
#2
You definitely need to use different score accumulation arrays: score1 and score2. Now, you are appending all results to the same array named score, it grows and becomes incompatible by size with k1_range and k2_range arrays
Reply


Messages In This Thread
RE: How to find the accuracy vs number of neighbours for KNN - by scidam - Apr-10-2019, 12:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trying to find the next prime number FirstBornAlbratross 8 4,279 Aug-14-2023, 01:16 PM
Last Post: deanhystad
  Python Program to Find the Factorial of a Number elisahill 2 1,423 Nov-21-2022, 02:25 PM
Last Post: DeaD_EyE
  How to find the accuracy for Random Forest vokoyo 2 3,413 Apr-09-2019, 10:50 PM
Last Post: vokoyo
  python age calculator need to find the number of years before they turn 100 not using orangevalley 4 9,934 Mar-26-2018, 04:44 AM
Last Post: PyMan
  dummy classifier accuracy and recall score metalray 0 4,585 Oct-31-2017, 09:27 AM
Last Post: metalray
  how to find a next prime number? iamyourfather 2 6,507 Oct-01-2017, 04:21 PM
Last Post: gruntfutuk
  Neighbours in an array MattaFX 10 23,212 Jan-26-2017, 02:24 AM
Last Post: Mekire

Forum Jump:

User Panel Messages

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