Data Science Masterclass

Data Science Masterclass

Share this post

Data Science Masterclass
Data Science Masterclass
KNNImputer for Filling Missing Data in Data Preprocessing

KNNImputer for Filling Missing Data in Data Preprocessing

K-Nearest Neighbors (KNN) Algorithm for Handling Missing Data

Rukshan Pramoditha's avatar
Rukshan Pramoditha
Aug 29, 2023
∙ Paid

Share this post

Data Science Masterclass
Data Science Masterclass
KNNImputer for Filling Missing Data in Data Preprocessing
Share
Photo by Casey Horner on Unsplash

The K-Nearest Neighbors (hereafter, KNN) is a supervised machine-learning algorithm that uses a k number of nearest (closest) neighbors to classify an instance into a relevant class.

Neighbors of an instance are found using the Euclidean distance. The Euclidean distance between two data points is calculated using the foll…

Keep reading with a 7-day free trial

Subscribe to Data Science Masterclass to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Rukshan Manorathna
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share