I have this pre-trained saved model, where I informed my categorical features, and it's working fine if I predict right after training. Now I wanna use it again in another context but I don't know how to properly inform the categorical features. I tried this:
model = CatBoostClassifier(cat_features=var_categ)
model.load_model('catmod.cat')
but when I try to predict:
modelo.predict(base)
I get this error:
CatBoostError: features data: pandas.DataFrame column 'cod_var1' has dtype 'category' but is not in cat_features list
Yes, I double checked the column is in var_categ.