Vidyalelo
Computer Science · Q270

Machine Learning

Engineering and GATE · Computer Science · question 270

Q270

Let's say, you are working with categorical feature(s) and you have not looked at the distribution of the categorical variable in the test data. You want to apply one hot encoding (OHE) on the categorical feature(s). What challenges you may face if you have applied OHE on a categorical variable of train dataset?

A.
All categories of categorical variable are not present in the test dataset.
B.
Frequency distribution of categories is different in train as compared to the test dataset.
C.
Train and Test always have same distribution.
D.
Both A and B
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board