Skip to main content
Module 3 · Lesson 5 of 514/56 in the course~20 min
Module lessons (5/5)

Multiple features and scaling

Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 3 — Linear regression and gradient descent

Several features, standardisation and why scaling helps gradient descent.

What you'll learn in this lesson

  • Fit a linear model with several features and interpret its coefficients.
  • Standardise features by hand and with StandardScaler.
  • Explain why scaling makes gradient descent behave.

Overview

Real predictions rarely depend on one number. A house price depends on size, rooms, age, location… A linear model extends naturally: one weight per feature.

In scikit-learn nothing changes: X just has more columns, and coef_ has one weight per column.

Sections covered in this lesson

  1. 1The hook: houses have more than a size
  2. 2Features on different scales
  3. 3Feature scaling methods compared
  4. 4Practice
  5. 5Check your understanding
Pro Lesson · Module 3 — Linear regression and gradient descent

Unlock "Multiple features and scaling" and the full Machine Learning: from first principles to practice curriculum

Several features, standardisation and why scaling helps gradient descent.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.