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 Story
How we grew from 0 to 3 million users
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

How to Handle Missing Values in Machine Learning

January 24, 2022
by
Abhishek Thakur
YouTube video player
How to Handle Missing Values in Machine Learning

TL;DR

Handling missing values in machine learning involves techniques such as mean or median imputation, using iterative or k-nearest neighbors imputer, and LightGBM imputer. The choice of technique should depend on understanding why values are missing and the impact of imputation on data distribution. Employing sklearn's imputation methods allows for efficient cross-validation without data leakage.

Transcript

hello everyone and welcome to my youtube channel today we have with us rob muller and rob is a kaggle grandmaster uh three times so he is a grandmaster in uh kernels or the notebook category and the discussions category and the competitions category which is like the most difficult uh to to get scheduled grandmaster category in and uh i think he's ... Read More

Key Insights

  • 🍵 Missing values are common in tabular data and need to be handled appropriately before training machine learning models.
  • 🎟️ The choice of imputation technique depends on the reason behind missing values and the distribution of missingness across features.
  • 😵 Sklearn's imputation classes allow for fitting and transforming within cross-validation, preventing leakage and overfitting.
  • 😉 Advanced techniques like iterative imputer and k-nearest neighbors imputer can leverage the data's structure to fill in missing values.
  • ❓ LightGBM imputer is a promising technique for imputing missing values in both numerical and categorical features.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: Why is it important to understand the reason behind missing values?

Understanding the reason behind missing values helps determine the appropriate imputation technique. It can also reveal if the missingness itself is an important feature to consider in the model.

Q: Can tree-based models handle missing values?

Yes, tree-based models like LightGBM can handle missing values without imputation. However, it is still recommended to experiment with different imputation techniques to see if they improve model performance.

Q: What is the advantage of using Sklearn's imputation classes?

Sklearn imputation classes allow for fitting and transforming the data within a cross-validation loop, ensuring that there is no leakage of information from the validation set. It also provides more flexibility in choosing different imputation strategies.

Q: How should we approach missing values in categorical features?

Techniques like k-nearest neighbors imputation and iterative imputer can handle missing values in categorical features. However, it is advised to test multiple techniques in a cross-validation setting to determine the best approach.

Summary & Key Takeaways

  • The video discusses the importance of handling missing values in machine learning, as missing values are common in tabular data sets.

  • The content explores various techniques for handling missing values, ranging from basic imputation methods such as mean and median imputation to more advanced methods like iterative imputer, k-nearest neighbors imputer, and light gbm imputer.

  • The speaker emphasizes the need to understand why missing values exist in the data, as it can inform the choice of imputation technique. He also highlights the importance of testing different imputation methods within a cross-validation scheme.


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 Abhishek Thakur 📚

Docker For Data Scientists thumbnail
Docker For Data Scientists
Abhishek Thakur
What Are Public and Private Leaderboards in Kaggle? thumbnail
What Are Public and Private Leaderboards in Kaggle?
Abhishek Thakur
Kaggle's 30 Days Of ML (Day-10): Underfitting, Overfitting & Random Forests thumbnail
Kaggle's 30 Days Of ML (Day-10): Underfitting, Overfitting & Random Forests
Abhishek Thakur
Song Popularity Prediction: EDA with Martin Henze (Part-2) thumbnail
Song Popularity Prediction: EDA with Martin Henze (Part-2)
Abhishek Thakur
I just got access to GitHub's Codespaces and it's amazing! thumbnail
I just got access to GitHub's Codespaces and it's amazing!
Abhishek Thakur
What Is Cross Validation and How Is It Used in ML? thumbnail
What Is Cross Validation and How Is It Used in ML?
Abhishek Thakur

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
  • Open Graph Checker

Company

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

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.