tidymodels recipe testing set with new levels of character predictors

Hi I built a random forest model with a character predictor transformed with step_dummy. However, when I was doing last_fit with splits, the model failed to generate predictions with warning Error: Missing data in columns:.

I want to know how to fix this issue.

Thanks,
Felix

Can you please provide a minimal reprex (reproducible example)? The goal of a reprex is to make it as easy as possible for me to recreate your problem so that I can fix it: please help me help you!

If you've never heard of a reprex before, start by reading "What is a reprex", and follow the advice further down that page.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.