Section 2 of 24 · 11 lessons

Data Preparation

A model only sees the records we give it. Before fitting, we need to know what a row represents, which measurements are missing, and how categories, units, and time should be represented. We also need to keep information from the future out of a prediction about the present.

0 of 11 finished

Can We Trust These Records?

A blank reading, a repeated import, and an unusual observation are different problems. We need to establish what each record represents before deciding how to prepare it.

Centres and Scales

A difference of ten means something very different when we are measuring age rather than income. We will look at how changing a measurement's reference point and units changes the comparisons a model makes.

Constructing and Reducing Features

Sometimes the useful relationship is easier to describe with a new measurement, such as area rather than length. Other times we have several measurements describing much the same thing. Both affect what we give the model.

Representing What We Measured

A material name is not a quantity, and an hour of the day repeats. Our representation should preserve those meanings instead of inventing relationships between arbitrary numbers.

Keep Future Answers Out of Training

Our fitting procedure must respect what was available at prediction time. We also need to keep rare outcomes visible so an apparently successful score does not hide the mistakes that matter.