A data scientist is preparing a dataset with a categorical feature "City" ('New York', 'London', 'Tokyo'). The feature has high cardinality and no inherent order. Which encoding technique is most appropriate to convert this feature for a linear model without imposing a false ordinal relationship?
-
A
Label Encoding
-
B
One-Hot Encoding
-
C
Ordinal Encoding
-
D
Log Transformation