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

K Means from Scratch - Practical Machine Learning Tutorial with Python p.38

43.1K views
•
June 22, 2016
by
sentdex
YouTube video player
K Means from Scratch - Practical Machine Learning Tutorial with Python p.38

TL;DR

Learn how to develop a custom k-means algorithm and apply it to a dataset, achieving accurate clustering.

Transcript

what's going on everybody welcome to part 38 of our machine learning tutorial series I'm hoping to cover a lot so let's go ahead and get started we've been working on our own custom k-means algorithm and we're going to continue picking that up so at this point we have at least classified all of the feature sets and in this part here passing for now... Read More

Key Insights

  • 👈 The custom k-means algorithm accurately classifies data points into clusters.
  • ❓ Optimization is crucial for determining the convergence of the algorithm.
  • 😥 The algorithm can effectively predict the cluster for new data points.

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 the custom k-means algorithm developed in the tutorial?

The purpose is to classify data points into clusters based on their features, using the k-means algorithm.

Q: How is the optimization of the algorithm implemented?

Optimization is done by comparing the movement of centroids after each iteration and checking if it exceeds the tolerance value.

Q: How is the prediction of new data points performed?

The algorithm calculates the distances between the new data points and all centroids, and assigns them to the cluster with the minimum distance.

Q: What happens when new data points are added to the dataset?

The algorithm adjusts the centroids based on the new data points, potentially changing the cluster assignment for existing data points.

Summary & Key Takeaways

  • The tutorial covers the development of a custom k-means algorithm, starting with classification and centroid redefinition.

  • The algorithm uses optimization to determine if the centroids have moved significantly, and continues iterations until convergence.

  • The code is implemented and tested on a dataset, showing accurate clustering and the ability to predict new data points.


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 sentdex 📚

How to Train a Chatbot Using TensorFlow and Python thumbnail
How to Train a Chatbot Using TensorFlow and Python
sentdex
Parsing XML - Go Lang Practical Programming Tutorial p.11 thumbnail
Parsing XML - Go Lang Practical Programming Tutorial p.11
sentdex
Python: How to Program the Chaikin Money Flow Trading Indicator thumbnail
Python: How to Program the Chaikin Money Flow Trading Indicator
sentdex
How to Parse Twitter for Twitter Analysis: Part 1 thumbnail
How to Parse Twitter for Twitter Analysis: Part 1
sentdex
Python: How to Graph the Chaikin Money Flow Trading Indicator in Matplotlib thumbnail
Python: How to Graph the Chaikin Money Flow Trading Indicator in Matplotlib
sentdex
Python Generator Functions for massive Performance Improvements with Lists thumbnail
Python Generator Functions for massive Performance Improvements with Lists
sentdex

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.