cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
JMP is taking Discovery online, April 16 and 18. Register today and join us for interactive sessions featuring popular presentation topics, networking, and discussions with the experts.
Choose Language Hide Translation Bar
drvijay
Level I

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!

1 ACCEPTED SOLUTION

Accepted Solutions
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

2 REPLIES 2
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
drvijay
Level I

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.