I have a dataset with non-ordinal categorical features. What is the best way to transform them (encoding + scaling) before training the machine learning model (Linear SVC)?
Things I tried:
Label Encoding - This works. But scaling doesn't make sense as different categories in a feature don't have any specific order.
One-Hot encoding - There are thousand's of unique categories in a features, which is making the ML model complex by creating thousands of columns.
Count encoding - My train-test split didn't have all unique categories of a feature in the training set, which introduces NaN's in test set when I count-encode those features.
Appreciate your help!