## How Question it's works

Can Any One Explain how StandardScaler Works ??

This scaler normalizes the data by subtracting the mean and dividing by the standard deviation.
StandardScaler is used to resize the distribution of values so that the mean of the observed values is 0 and the standard deviation is 1

y = (x – mean) / standard_deviation

  1. Import the necessary libraries required. We have imported sklearn library to use the Standard Scaler function.
  2. Load the dataset.
  3. Set an object to the StandardScaler() function.
  4. Segregate the independent and the target variables as required.
  5. Apply the function onto the dataset using the fit_transform() function.
1 Like