Knn algorithm mnist dataset

when we havent plotted the values of x and y then how come we are measuring the distances in mnist dataset?

Hey there,
Visualising the KNN algorithm in case of more than 1 feature is not an easy task but it works out still. The MNIST Dataset consists of 28*28=784 number of features (number of pixel values for each image). Just like in the case of a singlevariate problem, the distance is computed between the test point and every other point but the distance here being that the number of dimensions this time would be equivalent to the number of features (784 in case of MNIST) which makes it impossible to visualise on paper. Though, the distance is easily mathematically calculated using the Distance Formula.

I hopr this resolves your query

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.