Data Preprocessing for K-Nearest Neighbors (KNN)

Feature scaling and encoding

Rukshan Pramoditha
5 min readApr 14, 2024

--

Data preprocessing is a mandatory task for any ML algorithm and KNN is not an exception!

Previously, I’ve published an article on KNN. There, we discussed six effective methods for choosing the right number of neighbors (the value of k) for the KNN algorithm.

--

--

Rukshan Pramoditha

3,000,000+ Views | BSc in Stats | Top 50 Data Science, AI/ML Technical Writer on Medium | Data Science Masterclass: https://datasciencemasterclass.substack.com