Master LLMs with our FREE course in collaboration with Activeloop & Intel Disruptor Initiative. Join now!


The Complete Guide to Data Preprocessing (Part 2)
Latest   Machine Learning

The Complete Guide to Data Preprocessing (Part 2)

Last Updated on July 15, 2023 by Editorial Team

Author(s): Dr. Roi Yehoshua

Originally published on Towards AI.

Loading the Data Set

In the first part of this article, we described the data preprocessing process and showed how to handle missing values, categorical data, outliers and skewed data. In this part of the article, we will describe the discretization and normalization activities, and then demonstrate the entire process on a sample data set.

Discretization transforms a continuous-valued feature into a discrete one by partitioning the range of its values into a set of intervals or bins. The two main methods for discretization are:

Equal width/binning: the range of the variable is divided into equal-width bins. For example, if the range of the variable is… Read the full blog for free on Medium.

Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.

Published via Towards AI

Feedback ↓