1. Home
  2. Data Science
  3. Scikit-learn
  4. Which transformer converts string class labels into…

Added 30 Nov -0001

Which transformer converts string class labels into integers?

  1. StandardScaler
  2. SimpleImputer
  3. LabelEncoder Correct answer
  4. OneHotEncoder

Correct answer

C. LabelEncoder

16 views

MCQSEXAM

Explanation

LabelEncoder maps each distinct label to an integer code, which suits a target vector.

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