End-to-End ML Project- Beginner friendly

77 / 95

StandardScaler

Let's standardize our dataset using the StandardScaler class from the preprocessing submodule of sklearn.

Refer to StandardScaler documentation for further details about the method.

INSTRUCTIONS
  1. Import StandardScaler from sklearn.preprocessing.

  2. Create an object named scaler of the class StandardScaler.

  3. Call the fit_transform() method on the object scaler and provide housing_num as the dataset. Store the output in a variable named scaled_features.



Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...