How do I get accuracy while using Single class in KNN classifier

Viewed 15

I am trying to classify images of known and unknown types. KNN classifier in Tensorflow JS requires multiple classes in order to differentiate which is a near matching class. I am only using a single class and any image sent to it shows confidence as 1 for the same class since there is only 1 class that exists. How do I classify images based on the trained weights and percentage of accuracy against the trained data.

Thank you

0 Answers
Related