I have built an xgboost model using caret package. I saved this model and intended to use it for prediction for a new data I will have. Then when I tried to predict on a new dataset it turned out that among the new data there were no observations with value=unfinished for variable=condition_type while in a training set this value exists.
That led me to the following error:
Error in eval(predvars, data, env) :
object 'condition_type.unfinished' not found
Does anyone have the same problem and could guide me what to do in this situation?