Hello everyone, I am facing a challenge with unknown categories i.e., these categories are not present in my training set but are present in my testing set for the model. Is there a way that I can handle these categories using the OneHotEncoder
available in sklearn
? If there is, please provide me the example code for it. You can use the following example dataset for your code: