Choose Language Hide Translation Bar
drvijay
Community Trekker

K Nearest Neighbor: Making a Prediction for New Record

Hi!  I've run k-nn and saved prediction formulas for my dataset.  Now I am trying to make predictions for a number of new records and can't seem to recall how to do this (I have done this before but it's been several months).  

 

Any help on this would be much appreciated!  Thanks in advance for your suggestions/tips!

0 Kudos
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
txnelson
Super User

Re: K Nearest Neighbor: Making a Prediction for New Record

Just add the new values as new rows to the data table, and the prediction formulas will provide the answer
Jim

View solution in original post

0 Kudos
2 REPLIES 2
Highlighted
txnelson
Super User

Re: K Nearest Neighbor: Making a Prediction for New Record

Just add the new values as new rows to the data table, and the prediction formulas will provide the answer
Jim

View solution in original post

0 Kudos
Highlighted
drvijay
Community Trekker

Re: K Nearest Neighbor: Making a Prediction for New Record

Thanks much for your reply. This is exactly what I had planned to do (and
what I thought I had done before) but it doesn't work for some reason.
What I figured out was that I had to add the records BEFORE running the
algorithm and saving the prediction formula - this does seem to work.
0 Kudos