1
$\begingroup$

When classifying data by KNN, the classes are calculated by using the distance between datapoints. For example, the case of real estate, where the x-axis is the price and the y-axis the size of real estate. But what are the values of axis when instead of numbers there are pictures? By which category are the distances calculated in this case?

$\endgroup$

1 Answer 1

1
$\begingroup$

Lets say its a gray scale image. And of size 224*224 than you have 50176 possible pixel values. So you can plot on x axis widt=224 and on y heigth=224.

Lets say they are coloured. Than you have more chanels=dimensions. In that case you perform clustering in higher dimensional space

$\endgroup$
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.