internalsGet Pro

Module 11 · Lesson 4 of 13Pro

Scaling and normalizing features

Level
Beginner
Topic
Data preparation and feature engineering
Reading time
14 min

When you finish this page you can

  1. Explain why one extreme customer can make min-max and standard scaling squash a feature, and how robust scaling avoids it.
  2. Say which models need scaled features (distances, weight penalties, gradient steps) and which don’t (trees).
  3. Use a log transform for a skewed feature such as spend, and decide what happens to values beyond the training range.
  4. Tell apart the three things “normalize” means in ML code.
  1. scikit-learn: the fit and predict pattern14 min
  2. Norms and distances between data points14 min
  3. Logistic regression: predicting probabilities13 min
  4. Encoding categories as numbers14 min

Spend added nothing to the churn model

is our example online store. Its ML team works on a notebook sample of about 1 million orders from 200,000 customers. Every Monday, a model ranks those customers by how likely they are to stop buying, and Joseph’s growth team sends vouchers to the top 20,000.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan