For the latest version of JMP Help, visit JMP.com/help.


Publication date: 04/30/2021

K Nearest Neighbors

The following JSL message constructs a script to create a prediction formula column and returns it to the log.

knn_object << (Response[number] << Get Prediction Formula)

The following JSL message returns the value of the best K neighbors.

knn_object << Response[number] << Get Best K
Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).