OneHotEncoder is used to:
-
A
normalise numeric variables to a fixed range
-
B
remove duplicate rows from the input dataset
-
C
split the dataset into separate training and test subsets
-
D
convert categorical variables into binary indicator columns
Correct answer
Correct answer
D. convert categorical variables into binary indicator columns
12 views
Explanation
One-hot encoding creates one binary column per category so that models can use nominal features.
Reference
Asked in: NTS, PPSC IT, Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ