Start studying
Module 1 · Machine Learning Module contents
Module 1  ·  Card 25 / 55intermediate

Feature Engineering

Feature engineering means turning raw data into inputs a model can use well.

A date can become day, month, year or day-of-week columns.

Categories usually have to be encoded as numbers first.

Missing values have to be filled in or explicitly marked.

On classical ML it is often worth more than switching algorithms.

Learn in depth ↓
Module 01 · Machine Learning · 55 concepts
In depth  /  15 lines

Feature Engineering, in more detail

Feature engineering is reshaping raw data into something a model can use.

It is where knowledge of the subject enters a project.

A raw timestamp is nearly useless to most models.

Split it into hour, day of week and month and it becomes very useful.

Traffic patterns live in the hour, and shopping patterns live in the weekday.

Categories have to become numbers, and how you do that matters.

One column per category works fine when there are only a few.

With thousands of categories it becomes unusable and needs another approach.

Ratios often beat raw numbers, like price per square metre.

Differences often beat absolute values, like days since the last order.

Combining two columns can capture something neither holds on its own.

Every new feature must be computable at prediction time, or it is useless.

Every new feature must also avoid using the future, or it is leakage.

On tabular data this work usually beats switching to a fancier algorithm.

Deep learning reduces the need for it, but only once you have plenty of data.

Want the full technical article? Wikipedia ↗
Test yourself

One question on this card. Every option explains itself once you pick, right or wrong.

Question 1
Why split a raw timestamp into hour and day-of-week columns?
Machine Learning

55 concepts in this module, then a graded test with every answer explained.

Study this module →
↑↓ move↵ openesc close