Can we use polynomial features for one hot encoded x variables to fit polynomial regression?

I did one project to fit polynomial regression and the data has nominal values. I converted them to one-hot encoding.

Can we use polynomial features for one hot encoded x variables to fit polynomial regression?

I tried using polynomial features without separate one hot encoded variables and with separating one hot encoded variables. I got different RMSE errors. The one with poly features keeping one hot encoded giving me a large RMSE error.

Which one to choose?



Read more here: https://stackoverflow.com/questions/67015032/can-we-use-polynomial-features-for-one-hot-encoded-x-variables-to-fit-polynomial

Content Attribution

This content was originally published by pasuvula sai kiran at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: