From the course: Exploring Data Science with .NET using Polyglot Notebooks & ML.NET

Unlock this course with a free trial

Join today to access over 24,000 courses taught by industry experts.

Feature engineering

Feature engineering

- [Instructor] Feature engineering is an important concept in machine learning. Feature engineering is a fancy way of saying adding additional context to our data. So in other words, we have a certain set of columns and we want to add more information than what we already have. With feature engineering, you're typically adding a new column based on existing columns in your dataset. We're going to add two in this video of different levels of complexity. The first is going to be related to the CustomerTypes column. If we look at the current CustomerTypes values by calling the ValueCounts method on that column, it shows us the unique values in this column as well as the counts. Here we see we have over 4,000 individual customers and 902 business customers. What we're going to want to do, just for practice here, is add a IsBusiness column to our DataFrame. So we can do this in two steps. The first step is to identify the rows that have Business as their value for CustomerType. We can do…

Contents