Is there anyway to setup a process to automatically find the best parameters for let’s say kNN? I know there are loop variables but I am not sure how to set them up to test out various k values for kNN and to determine the best value of k.
You can use e.g. the Counting Loop start and set up a loop that runs from 1 to 10. Inside the loop, you put the kNN node and pin “k” to the current loop iteration value in the dialog’s “Flow Variables” tab. Then you do the prediction and scoring and collect everything in the generic loop end node.
You might need to enable the expert mode to get access to all necessary loop nodes (pass -D knime.expert.mode=true as Java argument while starting KNIME).