Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

ml5.js: KNN Classification Part 2

20.9K views
•
February 5, 2019
by
The Coding Train
YouTube video player
ml5.js: KNN Classification Part 2

TL;DR

Building a game controller using ML5 KNN classification for left and right movements.

Transcript

[DING] All right, we are ready to continue our ml5 KNN Classification, what I'm calling game controller. I want it to be able to create an interface by which I can train a little controller for a game to move something left and right, maybe up and down. That's what I'm doing. Now the last video I left off with at this step where I load the MobileNe... Read More

Key Insights

  • 🎮 ML5 KNN classification simplifies the process of building a game controller by utilizing real-time training and classification.
  • 💦 Understanding concepts like scalar, vector, matrix, and tensor is essential for working with ML algorithms.
  • 😥 The Euclidean distance formula is used to calculate distances between points in multidimensional spaces for classification.
  • 👶 KNN classification offers flexibility in training and adding new data labels for improved model accuracy.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the purpose of using ML5 KNN classification in building a game controller?

ML5 KNN classification is used to train and classify hand movements for controlling game elements like moving left and right.

Q: How does ML5 KNN classification differ from other feature extractors?

ML5 KNN classification eliminates the need for separate training steps by building a database of training images for real-time distance calculations.

Q: What are some advantages of using KNN classification in machine learning applications?

KNN classification allows for flexible training and classification simultaneously, with the ability to add new labels and images later for enhanced accuracy.

Q: How can ML5 KNN classification be used to control game mechanics?

By training the model with hand movements and using the classify function in real time, ML5 KNN classification can control game elements based on the trained inputs.

Summary & Key Takeaways

  • Demonstrates creating a game controller using ML5 KNN classification.

  • Explains the concepts of scalar, vector, matrix, and tensor in ML.

  • Shows how to train and classify hand movements for left and right controls in a game.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

Text Generation using Spell with Nabil Hassein thumbnail
Text Generation using Spell with Nabil Hassein
The Coding Train
9.4: Genetic Algorithm: Looking at Code - The Nature of Code thumbnail
9.4: Genetic Algorithm: Looking at Code - The Nature of Code
The Coding Train
Classifying Poses with ml5.js Part 2 thumbnail
Classifying Poses with ml5.js Part 2
The Coding Train
Coding Challenge #116: Lissajous Curve Table thumbnail
Coding Challenge #116: Lissajous Curve Table
The Coding Train
Coding Challenge #126: Toothpicks thumbnail
Coding Challenge #126: Toothpicks
The Coding Train
Computer Mouse Conference Demos! (node.js + tensorflow.js) thumbnail
Computer Mouse Conference Demos! (node.js + tensorflow.js)
The Coding Train

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.