Question
Why should categorical variables not be inserted directly into Euclidean KNN using arbitrary numeric codes?
Select an option. Your answer will be checked instantly.
Correct Answer: D. Numeric code differences may imply nonexistent order and distances
Explanation:
Encoding red, blue, and green as 1, 2, and 3 creates artificial spacing.
Appropriate one-hot encoding or mixed-type distances should be used.
Leave a Reply