cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
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.

Recommended Articles