Question
Which encoding is appropriate for an unordered variable with categories Lahore, Karachi, and Islamabad?
Select an option. Your answer will be checked instantly.
Correct Answer: A. One-hot encoding
Explanation:
One-hot encoding creates separate binary indicators without imposing an artificial order. This is appropriate for nominal categories.
Leave a Reply