yuenshingyan/MissForest

Not Handling Categorical Variables unseen by training data

chris-membrey opened this issue · 2 comments

Screenshot 2023-12-28 at 10 04 47

I get this error when transforming on my dataset that contains a postal districts column (UK). I think the error comes from categorical variables that have not been seen in the training set. is there a mechanism in place for handling this? Thanks.

@chris-membrey Hi, I have just enhanced the 'transform' method so that it will now deal with unseen categories.
pip install MissForest==2.4.2

Thank you!