1. Learn
  2. /
  3. Courses
  4. /
  5. End-to-End Machine Learning

Connected

Exercise

Normalization and Standardization

Feature scaling helps ensure that no feature dominates others during modeling. Normalization and Standardization are widely used feature scaling techniques. Normalization typically scales features in the range [0, 1] ensuring they have roughly the same scale. Standardization transforms the data to have zero mean and unit variance, maintaining more information about outliers and not bounding the range. matplotlib.pyplot has been imported as plt, MinMaxScaler and StandardScaler have been imported, and the split heart disease data features have been imported as X_train and X_test.

Instructions 1/3

undefined XP
  • 1
    • Plot the initial distribution of age.
  • 2
    • Normalize and plot the age feature.
  • 3
    • Standardize and plot the age feature.