1. Home
  2. Data Science
  3. Scikit-learn
  4. OneHotEncoder is used to:

Added 30 Nov -0001

OneHotEncoder is used to:

  1. normalise numeric variables to a fixed range
  2. remove duplicate rows from the input dataset
  3. split the dataset into separate training and test subsets
  4. convert categorical variables into binary indicator columns Correct answer

Correct answer

D. convert categorical variables into binary indicator columns

12 views

MCQSEXAM

Explanation

One-hot encoding creates one binary column per category so that models can use nominal features.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? 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