Exercise

Scaling

Before applying a machine learning algorithm, one of the most common operations applied to the data is scaling.

Scaling data helps the algorithm converge faster. It also avoids having one feature dominate all other features.

You'll now create and inspect a standard scaler object.

The data is available as environment.

Instructions 1/3

undefined XP
    1
    2
    3
  • Import StandardScaler, which is part of the preprocessing module of scikit-learn.
  • Initialize it a standard scaler object as sc.