I am able to grasp the PolyFeature concept for 2nd degree transformation, as cleared here: Cannot understand with sklearn's PolynomialFeatures
But what if my input vector is [a,b,c]
and I need to do a 4th degree transformation.
How would my transformed vector then look like, if I keep interactions (interactions_only = False
).
Would it be this:
[a,b,c, a^2, b^2,c^2,a^3, b^3,c^3, a^4, b^4,c^4, ab, bc, ca, a^2b^2,b^2c^2,c^2a^2,a^3b^3,b^3c^3,c^3a^3]
or do the different degrees also interact, e.g. a^3b^2
?