Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KNN Classifier does not show accuracy against trained data #1422

Open
engageaffli opened this issue Sep 22, 2022 · 0 comments
Open

KNN Classifier does not show accuracy against trained data #1422

engageaffli opened this issue Sep 22, 2022 · 0 comments

Comments

@engageaffli
Copy link

Dear ml5 community,

I'm submitting a new issue. Please see the details below.

β†’ Step 1: Describe the issue πŸ“

Did you find a bug? Want to suggest an idea for feature?

I am trying to add a single class instead of multiple classes to identify the distance between the trained data to the test data. But the confidence score is always 1 for any image since there is only 1 class added to it.
I would like to know how to get the accuracy percentage for KNN similar to custom object detection model.
Is there any evaluate function that I can use to get the accuracy when training a single class.

β†’ Step 2: Screenshots or Relevant Documentation πŸ–Ό

Here's some helpful screenshots and/or documentation of the new feature

β†’ Step 3: Share an example of the issue πŸ¦„

Here's some example code or a demonstration of my feature in this issue, separate GitHub repo, or in the https://editor.p5js.org or codepen/jsfiddle/Glitch/etc...

Other relevant information, if applicable

β†’ Describe your setup πŸ¦„

Here's some helpful information about my setup...

  • Web browser & version:
  • Operating System:
  • ml5 version you're using:
  • Any additional notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants