I am creating a Plumber API that returns predictions from a stacked ensemble model made with stacks
. I am hitting an error when trying to create the prediction though. I have a column called customer_800_club
that is used in the model workflow. When the new data to be predicted is used by the predict
function, it is somehow called customer_800_club_X0
. I have the following code to make my prediction:
my_pred <- predict(right_model, new_data = to_predict)
where right_model
is of class: "linear_stack" "model_stack" "list"
I have gone through every step of my workflow and cannot find where the column name would be getting changed. Thanks!