How should you encode these categorical values as input into the model?

You are creating a deep neural network classification model using a dataset with categorical input values. Certain columns have a cardinality greater than 10,000 unique values.

How should you encode these categorical values as input into the model?
A . Convert each categorical value into an integer value.
B . Convert the categorical string data to one-hot hash buckets.
C . Map the categorical variables into a vector of boolean values.
D . Convert each categorical value into a run-length encoded string.

Answer: C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments