Predicting is someone adolescent based on weight and height with K-Nearest Neighbor

Hello guys I’m making K-Nearest Neighbor Algorithm on Desmos Calculator.

  • Horizontal axis represent weight and vertical axis represent height.
  • There are only two labels those are red color means adult, blue color means not adult.
  • To predict outcome, you can move the K point (green point) to input the weight and height. You can manually set it or just drag the point interactively.
  • You can set how many neighbors depends on your need.

Let’s check it out: https://www.desmos.com/calculator/vwcy7ro0j7

1 Like

Thanks for sharing, loved the idea, organisation of thoughts, use of algebra and geometry and programming ideas without being too over the top.
544 people in the dataset? Who were they.