1. Home
  2. Data Science
  3. Scikit-learn
  4. What transformation does StandardScaler apply to each…

Added 30 Nov -0001

What transformation does StandardScaler apply to each feature?

  1. Replaces values with their rank within the column
  2. Applies a logarithm to compress large values
  3. Subtracts the mean and divides by the standard deviation Correct answer
  4. Rescales every value into the closed interval from zero to one

Correct answer

C. Subtracts the mean and divides by the standard deviation

15 views

MCQSEXAM

Explanation

StandardScaler centres each column on zero and scales it to unit variance using the mean and standard deviation learned during fit, giving a z-score. MinMaxScaler is the alternative that maps values into a fixed 0 to 1 range, which preserves the shape but is sensitive to outliers. Standardisation matters for distance-based and regularised models such as k-nearest neighbours, SVMs and logistic regression with penalties.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Scikit-learn MCQs

Practise all Scikit-learn MCQs

Similar MCQs