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
From the course: Exploring Data Science with .NET using Polyglot Notebooks & ML.NET
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
-
-
-
-
Introducing DataFrames3m 47s
-
(Locked)
Renaming and removing columns3m 7s
-
(Locked)
Replacing missing values3m 47s
-
(Locked)
Dropping missing values1m 19s
-
(Locked)
Feature engineering5m 36s
-
(Locked)
Merging DataFrames2m 11s
-
(Locked)
Grouping data2m 16s
-
(Locked)
Filtering data2m 33s
-
(Locked)
Exporting DataFrames1m 22s
-
-
-
-
-