Polynomial regression and Feature Engineeringin

Hi Everybody.

Suppose we have in our dataset n features.

After plotting data, we want to apply polinomial regression.
Say from degree 1 to degree 3.

When coding the for loop, do we change n into n+2 (the number of new features added?)

ii am somehow confused.

Waiting for your feedback.

Thanks.

It’s two separate steps.

  1. Write your code so it works with any number of features.
  2. Add the new features to your dataset.

hi @TMosh .

thank you for the reply.

i will implement this.