I am trying to implement the k-nn algortihm to train the datasets to recognise inputs and classify them into the right class. However, I keep receiving the error stating 'The data type of the variant is not compatible with the data type wired to the type input'. Any ideas as to what could possibly be the problem?
I have attached my coding for reference.