Xgboost prediction and how to deal with data drift

Follow the full discussion on Reddit.
I have an xgboost model that I trained on tabular data with categories (there are no numerical fields). I use pandas.get_dummies() to ohe categorical fields and feed it to xgboost model to train. Now the question is that at inference time, whenever there is new categorical value, my matrix looks different and model.predict() fails.

Comments

There's unfortunately not much to read here yet...

Discover the Best of Machine Learning.

Ever having issues keeping up with everything that's going on in Machine Learning? That's where we help. We're sending out a weekly digest, highlighting the Best of Machine Learning.

Join over 900 Machine Learning Engineers receiving our weekly digest.

Best of Machine LearningBest of Machine Learning

Discover the best guides, books, papers and news in Machine Learning, once per week.

Twitter