Skip to main content

Data Preparation

Step 2 of the machine learning workflow

NoteDATA· at a glance
Workflow step Step 2 of 5 · Data Processing
What you’ll learn The what, when, and how on processing your data
Standards assessed DATA-PREP · FLOW2
Key terms
Materials readings · slides · homework · lab
Self-quiz standards & practice →

Overview

Model evaluation

Readings

Before class, read the assigned material and take notes.

Slides

Feature Selection

DATA1: Feature selection and missingness.
Open in new tab

Feature Engineering

DATA2: Transforming numeric features and encoding categorical features.
Open in new tab

Homework

This homework walks through the data cleaning steps and thought process using AirBnB data. Click to view pdf.

Lab

In this lab, we will perform various data cleaning techniques and transformations on a rental housing dataset. The last task in this lab requires you to go out and view analyses that other programmers have published using this dataset, bringing back at least one interesting code snippet you saw. Click to view Colab Notebook

Self-quiz

Use the standards below as a checklist, then try the practice questions to test yourself.

Standards

DATA-PREP

You should be able to:

  • Identify which kind of features require preparation
  • Offer appropriate methods for preparing those features
  • Explain the steps necessary to implement the methods selected

FLOW2

You should be able to:

  • Describe the five steps of the ML workflow
  • Give examples of tasks you can do for each step