Handle New Categories for both training and test set

18 Views Asked by At

I worked on a classification problem for the Kaggle Competition, and I found there are 3 categorical columns, but I noticed that the service column in the train data has 66 categories, and in the test data it has 64 categories only as shown on the screen. How could I handle the problem of encoding? categories

I made fit then transform for test data, was that right? label encoding

0

There are 0 best solutions below